标签:
class Person2 { public int Age { get//这是只读的 { } }
class Person { public int Age { get; set; } }
class Person { public int Age; public string Name; private string Nickname; public void GiveNn(string nickname) { if (nickname == "Dogegg") { return; } this.Nickname = nickname; }
标签:
原文地址:http://www.cnblogs.com/zxm1002/p/4834170.html