Google News
logo
C# - Interview Questions
What are partial classes in C#?
A partial class is a special feature of C#. It provides a special ability to implement the functionality of a single class into multiple files and all these files are combined into a single class file when the application is compiled. A partial class is created by using a partial keyword. This keyword is also useful to split the functionality of methods, interfaces, or structure into multiple files.
public partial Class_name  
{
       // Code 
}
Advertisement