You can split the implementation of a class, a struct, a method or an interface in multiple .cs files by using the partial keyword.
Multiple developers can work simultaneously on the same class in different files.
Partial Methods
- A partial class may contain partial methods
- One part of the class contains the signature of the method
- An optional implementation may be defined in the same part or another part
- Must use partial keyword and must return void
- both declaration and implementation of the method must have the partial keyword
Comments
Post a Comment