2012年2月28日
摘要: 原文地址:http://www.kuqin.com/dotnet/20080628/10196.html白话C#:特性首先要说的是,可能一些刚接触C#的朋友常常容易把属性(Property)跟特性(Attribute)弄混淆,其实这是两种不同的东西。属性就是面向对象思想里所说的封装在类里面的数据字段,其形式为: 1: public class HumanBase 2: { 3: public string Name { get; set; } 4: public int Age { get; set; } 5: public int Gender {... 阅读全文
posted @ 2012-02-28 15:19 风筝blog 阅读(261) 评论(0) 推荐(0) 编辑