Click here to Skip to main content
15,891,903 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi Developers

Why We used in public partial class in C# and give the Clear about Partial Class
Posted
Comments
[no name] 24-Jun-15 23:24pm    
Has it occurred to you to look at the documentation?
Success Savada Muthu 24-Jun-15 23:26pm    
Its K What's Use of this Using project friend
sasanka sekhar panda 25-Jun-15 1:27am    
mainly code separation/ neat and clean coding not to put huge amount of code in one file ..You can take the example of windows form application..
All the designing or Ui related auto generated code we put in one partial class(designer.cs file).
And Our own declared events we are putting in the code behind..But they executed as one
PIEBALDconsult 25-Jun-15 0:09am    
There's no such thing as a "partial class".
[no name] 25-Jun-15 0:15am    
Not these: https://msdn.microsoft.com/en-us/library/wa80x488.aspx?

A partial class is one which may not be coded in once placee.g. one method of a partial class could be in one source file and another method in another source file.

For advantages and more details, go through Partial Classes in C#[^].
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900