Visual Studio 2010: Easiest way to duplicate a class?

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

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

相关标签:
7条回答
  • 2021-01-18 20:05
    • Open file in Visual Studio.
    • Press Ctrl+A.
    • Press Ctrl+C.
    • Create a new file for the new class.
    • Press Ctrl+V in the new file.
    • Replace all old class names with the new one. (Ctrl+H)
    0 讨论(0)
提交回复
热议问题