What is partial classes in .net?
.Net2.0 supports the concept of partial classes which is unlike the concept of one class one file. In .Net technology, one can define a single class over multiple files using the concept of partial classes. When an application is compiled, it groups all the partial classes and considers them as a single object. This allows for separation of concerns, e.g.: Aspx page class might have the UI code and the Aspx.cs class file has the code for it.
Example:public partial class MyClass
{
public void Attend()
{
}
}
public partial class MyClass
{
public void Dismiss()
{
}
}