| Start |
|---|
| Partial classes Partial classes provide an ability to split class declaration (usually into separate files). A common problem that can be solved with partial classes is allowing users to modify auto-generated code without fearing that their changes will be overwritten if the code is regenerated. Also multiple developers can work on same class or methods. |
| Partial methods Partial method consists of the definition in one partial class declaration (as a common scenario - in the auto-generated one) and the implementation in another partial class declaration. |
| Partial classes inheriting from a base class When inheriting from any base class, only one partial class needs to have the base class specified. You can specify the same base class in more than one partial class. It will get flagged as redundant by some IDE tools, but it does compile correctly. You cannot specify different base classes in multiple partial classes, it will result in a compiler error. Syntax
Remarks |
Read Article
https://develop.horje.com/learn/1434/reference