会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
周雪峰的博客
关注.NET技术与编程思想
博客园
首页
新随笔
联系
订阅
管理
2009年12月6日
深入解析值类型的初始化过程!
摘要: 大家看一个结构体定义: struct Book { public string author; public Book(string author) { this.author = author; } public string Author { get { return author; } set { author = value; } } }下面是初始化代码: static void Main...
阅读全文
posted @ 2009-12-06 23:15 周雪峰
阅读(1693)
评论(12)
推荐(1)
编辑