Partial Types

Types may belong to more than one compilation unit. Partial types are prefixed with the keyword partial, as in the following example:

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# tab of their property sheets (see Field properties).

For partial types that contain inner types, you can specify the compilation unit to which each inner type will be assigned as follows:


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com