Partial Classes in C#

后端 未结 20 2895
广开言路
广开言路 2021-02-19 08:25

Are there are good uses of Partial Classes outside the webforms/winforms generated code scenarios? Or is this feature basically to support that?

20条回答
  •  醉话见心
    2021-02-19 08:48

    maybe its too late but please let me to add my 2 cents too:

    *.When working on large projects, spreading a class over separate files allows multiple programmers to work on it simultaneously.

    *.You can easily write your code (for extended functionality) for a VS.NET generated class. This will allow you to write the code of your own need without messing with the system generated code

提交回复
热议问题