Item 12: Prefer Member Initializers to Assignment Statements(Effective C#)
摘要:
Member initializers are the simplest way to ensure that the member variablesin your type are initialized regardless of which constructor is called.The initializers are executed before each constructor you make for yourtype. Using this syntax means that you cannot forget to add the properinitializati 阅读全文
posted @ 2011-01-21 23:37 Ray Z 阅读(191) 评论(0) 推荐(0) 编辑