Partial Classes and Methods

Learn to split a single class across multiple files.

Partial classes

There is a C# feature that allows us to split class definition into multiple locations or files. Using the partial keyword, we inform the compiler that the class source code is located in multiple places:

Get hands-on with 1400+ tech skills courses.