Saturday 15 August 2015

c# - Under what conditions it is good to have a "partial class?" -


Give it to your class. When is it good idea to separate in C and to be partially square?

Do some signs show that it's time to go with partial orbit?

Thank you!

When you have to manually create a part of those classes and write the rest of the class content manually .

This is because you have the advantage of doing a file-handled material and hand-coded code in another file, so that when you have to recreate the source code, your hand-coded The part will not have to be erased.

Thus MS prepares class materials for your GUI designers (Think about those *. Designer.cs file), and you have your logic in other related files Allows to put the meat of ( * .cs )


No comments:

Post a Comment