Need a good Example for Prtial Class in C#
Give me a brief/exact def. of partial class..and very urgently need a short but good example/implement of that(in C#)..
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mahesh ChandRank #1 · 393.3K reputationPosted Dec 22, 2009, 1:59 PM EST
Nilanka DharmadasaRank #1,875 · 794 reputationPosted Dec 22, 2009, 7:37 PM EST
Yes there are good exmples in this site itself.
Let's say you have a class called Employee and you should write a lot of code inside this class.
Employee's salary related code, work related code, and personal details.
So we can divide this into three partial classes.
Now check my exmple.
If you find my answer useful, please do not forget to tick 'Do you like this answer' checkbox.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 22, 2009, 10:20 PM EST
If you don't understand that, then don't include that in your answer to your instructor. You should also ensure you understand any code you turn in as your code.