
Hi,
The biggest use of partial classes is make life easier.
Partial classes is a new concept in C# 2.0.
Partial class means, a single class is split into multiple classes across multiple files with same signature. When compiler will compile the class file, it makes into single class.
The advantage of this is each developer can work on individual files and at the time of compilation, all the partail classes will be run as one class.It is easy to maintain and also find out where the error is using partial classes.
This provides a very clean framework for separation of concerns.
Example:
public partial class Employee
{
public void DoWork()
{
}
}
public partial class Employee
{
public void GoToLunch()
{
}
}
For more info link : http://msdn.microsoft.com/en-us/library/wa80x488(v=vs.80).aspx
Thanks & Regards;
M Imran Ansari
Thanks & Regards;
Muhammad Imran Ansari
Nagukothapalli, if this helps please login to Mark As Answer. | Alert Moderator