Listing 12 shows a simple example of partial classes.
清单12显示了部分类的简单示例。
Partial classes are useful in several situations.
部分类别适用于数种情况。
Class Designer supports partial classes and methods.
类设计器支持分部类和分部方法。
Generates partial classes where custom code can be written and won't be overwritten.
生成分部类,用于书写自定义代码,以避免被自动生成的代码覆盖。
These classes are partial classes that can be extended with additional members added by the developer.
这些类都是部分类,因此开发人员能对它们添加额外的成员。
In addition, when you use partial classes, a mapping model is used to direct each definition of the partial class into a file based on your requirements.
另外,当您使用局部类型时,应用映射模式基于您的需要,可以指导局部类型的每个定义成为一篇文档。
Arranging production manufacturing classes in construction materials classes violates the rules of classification, and making partial classes are not equalization.
建筑材料类编列生产制造类目违背分类法编制原则,且造成局部类目不均衡。
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.
一旦在部分类中像如下这样添加了的话,这些验证方法将会在应用程序中更新数据模型时自动的触发。
Business logic and any non-persistent data can be implemented completely in partial classes and methods of entities and the data context, or it can be implemented in separate classes.
商务逻辑以及任何非持续性资料则可完全实作在实体的部分类别和方法和资料内容,或可以实作在另外的类别中。
A partial "service Generator" was written that generated skeleton code for proxy, invoker, and service classes from an explicit interface.
“服务生成器”的功能是根据显式接口为代理、调用程序和服务类生成框架代码,它已经被部分编写出来。
For classes and class templates, the library clauses specify partial definitions.
对于类和模板类,标准库章节仅规定了它们的部分定义。
The namespace includes classes that support forms, input controls, links, partial views, and validation.
该命名空间包含支持窗体、输入控件、链接、分部视图和验证的类。
The namespace includes classes that support forms, input controls, links, partial views, and validation.
该命名空间包含支持窗体、输入控件、链接、分部视图和验证的类。
应用推荐