C# 代码写法
写法一:
         public string name;
         写法二:
         public string Age { get; set; }
         写法三:
         private string type;
         public string Type
         {
             get { return type; }
             set { type = value; }
         }
------解决方案-------------------- 写法1是微软不推荐的,写法2需要.net 3.0以上,自动属性,有时可以带来方便;写法3就是一般写法。
后2种根据需要选用。
------解决方案-------------------- 探讨 ------解决方案-------------------- 探讨 ------解决方案-------------------- 探讨