在 Visual Studio 2012 中,当将表达式(具有已知类型)分配给未定义的标识符(例如:)xxxx=2;导致编译错误"The name 'xxxx' doesn't exist in the current context"时,建议的修复是Generate property stub和Generate field stub。
我想知道为什么没有类似的Generate local variable选项,以及是否有一些快捷方式以便我不需要键入它。
在 Visual Studio 2012 中,当将表达式(具有已知类型)分配给未定义的标识符(例如:)xxxx=2;导致编译错误"The name 'xxxx' doesn't exist in the current context"时,建议的修复是Generate property stub和Generate field stub。
我想知道为什么没有类似的Generate local variable选项,以及是否有一些快捷方式以便我不需要键入它。