private string MyString { get { return "get"; } set { if (value == null) throw new ArgumentNullException(nameof(value)); this.MyString = value; } }
C# get,set如何自定义
猜你喜欢
转载自blog.csdn.net/qq_31629213/article/details/80433453
今日推荐
周排行