摘要: 1) Automatic Properties自动属性如果你之前使用的是.NET 2.0或者你不熟悉.NET 3.5的新特性,你可能经常写出以下的代码:定义属性public class Person { private string firstName; private string lastName; private int age; public string FirstName { get { return firstName; } set { firstName = value; } } public string LastName { get { return lastName; } 阅读全文
posted @ 2011-07-05 22:36 Xiao Tian 阅读(248) 评论(0) 推荐(0)