摘要:
之前的做法:在c#3.x出来之前,相信大家已经习惯通过一个private field + public property的发式来定义和实现一个public Property。就如下面方式实现。1classperson2{3privateintage;4privatestring_name;5publicintAge6{7get{returnage;}8set{age=value;}9}10publ... 阅读全文
posted @ 2008-04-10 11:06
gjcn
阅读(2687)
评论(14)
推荐(0)

浙公网安备 33010602011771号