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.
我正在创建一个 Windows 窗体,并且该类被声明为部分。我可以对我这边的所有行为进行编码,但我注意到在部分类的另一侧,我可以看到 UI 是如何创建的。我怎样才能打开这个?(我在调试器中单步执行时注意到了这个隐藏的代码)
您可以单击类名称,然后按 F12,它将列出您的类的每个声明,无论是否部分。
干杯
在您的解决方案资源管理器中展开您的表单(通过单击左侧的加号,它具有 .cs 扩展名)。里面有一个 myForm.designer.cs。在那个文件中是你的部分类的其余部分。