Listing 12 shows a simple example of partial classes.
清单12显示了部分类的简单示例。
Generates partial classes where custom code can be written and won't be overwritten.
生成分部类,用于书写自定义代码,以避免被自动生成的代码覆盖。
Class Designer supports partial classes and methods.
类设计器支持分部类和分部方法。
These classes are partial classes that can be extended with additional members added by the developer.
这些类都是部分类,因此开发人员能对它们添加额外的成员。
Once defined in partial classes like below, these validation methods will automatically be enforced anytime we write code to update our data model objects in an application.
一旦在部分类中像如下这样添加了的话,这些验证方法将会在应用程序中更新数据模型时自动的触发。
Once defined in partial classes like below, these validation methods will automatically be enforced anytime we write code to update our data model objects in an application.
一旦在部分类中像如下这样添加了的话,这些验证方法将会在应用程序中更新数据模型时自动的触发。
应用推荐