Visual Studio 2010: Easiest way to duplicate a class?

后端 未结 7 1438
深忆病人
深忆病人 2021-01-18 19:08

Is there an easy way to duplicate a class with a different name?

7条回答
  •  一整个雨季
    2021-01-18 19:45

    It's usually better to refactor your class to be reusable. Copy paste code leads to having to fix the same code in multiple places and much pain as you're breaking OO principles.

提交回复
热议问题