分部方法有着严格的限制。
分部方法通常被定义在一个分部类中,在常规的类文件中也可实现。
A partial method is usually defined in a partial class file and is optionally implemented in the regular class file.
因为任何针对没有被实现的分部方法的调用都会简单地被忽略,所以说这些限制是非常有必要的。
These restrictions are necessary because any calls to a partial method that was not implemented are simply ignored.
应用推荐