 The different parts of a partial class must be marked with keyword .// File1.cs
partial class Foo

// File2.cs
partial class Foo


Before you can use the members of the class you need to initialize the variable with a reference to an object.To create it you call the appropriate constructor using the keyword.