摘自:《pro C#2010 and the .NET 4 Platform》
Using partial classes, you could choose to move the constructors and field data into a brand new file
named Employee.Internal.cs (please note, the name of the file is irrelevant; here I just tacked on the
work internal to represent the guts of the class).
本文介绍了C#中部分类的使用方法,通过一个具体的Employee类案例,展示了如何将类的不同部分(如字段、构造函数、方法和属性)分布在不同的文件中进行管理,从而提高代码的组织性和可维护性。
177

被折叠的 条评论
为什么被折叠?



