Partial Types

Partial types are types that belong to more than one compilation unit. They are prefixed with the partial keyword.

public partial class Server
{
  private int start;
}

In this case, you can specify to which compilation unit each field and method will be assigned, using the Compilation Unit box on the C# or VB tab of their property sheets.

For partial types that contain inner types, you can specify the compilation unit to which each inner type will be assigned as follows:
  1. Open the property sheet of the container type and click the Inner Classifiers tab.
  2. If the CompilationUnit column is not displayed, click the Customize Columns and Filter tool, select the column from the selection box, and then click OK to return to the tab.
  3. Click in the CompilationUnit column to reveal a list of available compilation units, select one, and click OK to close the property sheet.