Understanding and Using Partial Classes in C#
page 8 of 8
by Brendan Enrick
Feedback
Average Rating: 
Views (Total / Last 10 Days): 8460/ 415

Conclusion

Partial classes should make your coding easier. They will allow for some extra code separation without adding much complexity. They will also allow you to work with generated code without fear of changes being overwritten. Plenty of different applications which generate code for you will declare classes as partial specifically so that you can do this. They make it much easier for people to work with the generated code if the class is declared as partial. If you're ever writing any sort of a code-generating program you will want to make sure that you declare all classes, interfaces, and structs as partial. The users of your program will thank you when they need to make modifications. No your code is not perfect, so some users will want to make modifications.


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 7 and 6 and type the answer here:

User Comments

Title: not decribe well   
Name: vivek rai
Date: 5/4/2008 7:21:53 AM
Comment:
u r not able to decribe well....

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 7/5/2008 5:32:44 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search