分部方法有着严格的限制。
类设计器支持分部类和分部方法。
分部类型可能包含分部方法。
分部方法是隐式私有的。
“文件名”仅列出了包含分部方法声明的文件。
File Name lists only the file that contains the partial method declaration.
如果分部方法没有被实现,编译器就不会、对他们进行编译。
If the partial method is not implemented, the compiler strips out all mention of it.
反过又意味着,分部方法不能作为一个明确分配的变量。
This in turn means it cannot be used as a definite assignment to a variable.
分部方法通常被定义在一个分部类中,在常规的类文件中也可实现。
A partial method is usually defined in a partial class file and is optionally implemented in the regular class file.
另外一些人对于C#中的分部方法也是忧虑重重,大部分是关于代码设计器的使用的。
Other people are likewise concerned about partial methods in C#. Most of these concerns come from the use of code designers.
分部方法另外一个经常被用到的地方是验证,或者让属性的setter去更新另一个属性。
And also fairly common is the need to interfere with this method for validation or that property setter to update another one.
这个问题问得好,基本上,分部方法仅被代码生成器在处理轻量级事件的时候使用。
Well basically, they are only used by code generators for a sort of lightweight event handling. As Alexander Jung explains.
因为任何针对没有被实现的分部方法的调用都会简单地被忽略,所以说这些限制是非常有必要的。
These restrictions are necessary because any calls to a partial method that was not implemented are simply ignored.
VisualBasic也有分部方法,尽管VB不需要对变量的明确分配,它也有同样的限制。
Visual Basic also has partial methods and though VB does not require definite assignments for variables, it has the same restrictions.
分部方法在分部类型的一个部分中定义它的签名,并在该类型的另外一个部分中定义它的实现。
A partial method has its signature defined in one part of a partial type, and its implementation defined in another part of the type.
替代方法是剪切并粘贴生成的计划并将其作为应用程序归档文件的一部分部署。
The alternative is to cut and paste the generated plan and deploy it as part of the application archive.
雷声公司Solipsys分部的战术组件网(TCN)技术将可以使五角大楼通过固定和移动通信的方法,迅速的连接传感器和分发信息。
The Raytheon Solipsys Tactical Component Network (TCN) technology will enable the Pentagon to link sensors and distribute information instantly across both fixed and mobile communication methods.
本文给出了用定积分的分部积分法求解二重积分的一种方法。
This paper gives a method to solve double integration by integral subsection integration.
本文通过分部结晶法制取石油萘的实验,摸索制取石油萘的方法与工艺参数。
This article tries to feel about the method and graft parameter of preparing petroleum naphthalene by the experiment of the branch crystal system to make tar naphthalene.
分析了不定积分的四种基本求解方法:直接积分、第一换元法、第二换元法、分部积分法。
There are four solutions of indefinite integration in paper: direct integration, the first exchangeable integration, the second exchange - able integration, parcel integration.
以模型化方法定量研究了作业生产能力约束下的标准作业成本基础转移定价方法,可实现对企业内各分部生产采购决策的有效引导。
A transfer pricing system based on standard activity cost with capacity constraints is proposed with quantitative study which can induce the divisions' production and purchasing decisions.
以模型化方法定量研究了作业生产能力约束下的标准作业成本基础转移定价方法,可实现对企业内各分部生产采购决策的有效引导。
A transfer pricing system based on standard activity cost with capacity constraints is proposed with quantitative study which can induce the divisions' production and purchasing decisions.
应用推荐