Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个文件和另一个类中有多个类。我需要拉出其中一个类并放入它自己的文件中。我尝试右键单击:“添加类”选项...但得到错误“类'xxx'无效或已在所选源文件中实现。” 如果我尝试使用不同的名称,它会起作用……但我需要和以前一样的名称。
创建一个新文件Ctrl+ X, Ctrl+ V- 最简单的解决方案