CSharp - Partial Types and Methods

Introduction

You can use Partial types to split a type definition to multiple files.

For example:

// MyClassGen.cs
partial class MyClass { ... }

// MyClass.cs - another one
partial class MyClass { ... }

Each participant must have the partial declaration.

Participants cannot have conflicting members.

Each participant must be available at compile time and must reside in the same assembly.