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

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 8 and 5 and type the answer here:

User Comments

Title: Nice Article   
Name: Senthil
Date: 11/2/2009 6:07:40 AM
Comment:
Very Nice Article!!
Title: Excellent !!   
Name: Sai
Date: 10/30/2009 3:10:32 AM
Comment:
Nice article for beginners.
Title: partial class   
Name: vikash kumar
Date: 10/15/2009 6:07:41 AM
Comment:
Article written by you is good but not enough.pls modify it.
Title: Great little read   
Name: Piao!
Date: 9/18/2009 11:34:43 AM
Comment:
Good writing style, and nice real world examples - cheers man!
Title: Nice Article   
Name: sam
Date: 9/9/2009 7:42:56 AM
Comment:
nice article Enrick. Can you suggest me some article on delegates & events?
Title: Good Article   
Name: Rajender Kumar
Date: 8/28/2009 12:49:41 AM
Comment:
i am a web developer Asp.Net C#. i have read this article, that is well understandig for beginners.
Thanks for taking time for this post.
Title: Thank you   
Name: phil
Date: 7/1/2009 8:01:46 PM
Comment:
Thanks for posting this. I despise .net but I have to do it at work so its nice to find articles that teach the concepts rather than syntax.
Title: Well written   
Name: Satyajeet
Date: 6/4/2009 3:43:57 PM
Comment:
Hey dude,
I'm a developer starting of with C# and .NET rather late. But I think this is an excellent article. And I pity some of the morons who've barely got enough grasp over English to criticize you. This article is extremely crisp and helpful, and so thanks a lot!
Title: confuseeeeeeeeee   
Name: sagar
Date: 1/29/2009 1:48:30 AM
Comment:
Hi.. i am cleared abt partial class in c#.... but u r article mix with aspx... ca u clarify this
Title: partial classes   
Name: shraddha
Date: 1/13/2009 4:12:44 AM
Comment:
very good article
Title: I am heap to get you   
Name: zinabu Alemayehu
Date: 11/8/2008 10:00:40 AM
Comment:
I need some help from you based on the asp,c#,and vb.if you get full of code about some project please send to me via my email.

I always Thank u.........
Title: Thank you   
Name: Shawn F.
Date: 9/23/2008 10:55:07 AM
Comment:
Thanks for taking the time to post this. It helps clear things up.

BTW...You're able to describe things well enough for me.
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 






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/20/2009 11:50:21 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search