Skip to main content

SOLID - Open Closed - Partial Classes


2. Partial-ling Our Classes.
In C#, partial-ling our classes will allow us extend our classes if there is new features need to be implemented. From the code above we may assume that the version 1 has been released and a new features need to be implemented, developer now may add the features without modifying the old class by creating a new .cs file and insert the partial identifier with the same name of the class.



Published on : 10-Jan-2019
Ref no : DTC-WPUB-000101

About Author

My photo
Wan Mohd Adzha CAPM,MCPD,MCSD,MCSE
Passionate about new technology ( Software Engineering ) and how to build,manage and maintain them

Comments