c# multiple classes in one file code example Example: C# define class in multiple files public partial ClassName { // code }