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.
当您向类添加接口时(例如:Implements IAppController),Visual Studio 会立即告诉您缺少某些方法,它甚至会告诉您它们的名称和签名是什么......
有没有办法让 VS 将那些缺少的方法创建为存根?
在接口声明下有一个所谓的“智能标签”。激活它并选择“实现接口...”。请参阅MSDN - 如何:实现接口以获取更多参考。