What is Partial Class?
Partial class is a feature in which it is possible to split the definition of class or structure or an interface over two or more source files. Each source files contain the section of class definition and all parts are combined when the application is compiled. This is only possible with the help of the partial keyword.
using the partial keyword indicates that other parts of class, struct or interface can be defined within namespace. All the parts must have same accessibility such as-internal, protected and so on so that all the parts properly combined when we compile the program.
Partial class is a feature added to C# 2.0 and visual studio 2005.
Example Illustrating Partial class
using system;
namespace MyNameSpace
{
public partial class MyClass
{
public void disp1()
{
Console.WriteLine("hello I am method of partial class ");
}
}

kuldeep sharmaPosted Jul 24, 2013, 7:44 AM
whats new in this parital classes kindly explain