Partial Classes
The partial keyword indicates that other parts of the class, struct, or interface can be defined in the namespace.
Rules
- All the parts must use the partial keyword.
- If any part is declared
abstract
, then the whole type is consideredabstract
. - If any part is declared
sealed
, then the whole type is consideredsealed
. - If any part declares a base type, then the whole type inherits that class.