partial class in C#.Net

Partial class is introduced in .Net 2.0
partial class is a new way of defining class
it allows you to define a class into multiple partial classes
During compilation time compiler simply groups all partial classes into one class
partial classes should be preceded with Partial Keyword
All the partial classes should be defined in the same namespace
Method signature should be unique

No comments:

Post a Comment