Partial Classes in C#

后端 未结 20 3005
时光说笑
时光说笑 2021-02-19 07:59

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:52

    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

提交回复
热议问题