What is the use of partial class?

Posted by Rajendra.prasad under WPF on 6/10/2010 | Views : 3059 | Status : [Member] | Replies : 1
What is the use of partial class?
a). reduction in file contention in shared development environments. The forms designer and the developer are both trying to change the same file.

b). isolation of low-level details. You don't have to worry about the details of how the individual controls are instantiated and initialized.

c). protection for generated code through changes. You are less likely to change the generated code, and any code that you add will not be in the designer file and is protected.

d). all the above


Posted by: Neeks on: 7/21/2010 [Member] Bronze

Why are you posting such a question in Forum? If you are aware of the answer you should post it in the Interview section.

The main purpose of the Partial class is to manage large code in different files so that can be managed and by different people and the class output remains same.

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response