问题
您在控制台窗口中看到以下错误:
error CS0103: The name `____' does not exist in the current context
原因
当使用上下文中不存在的变量或方法名时,会导致CS0103。
此示例中显示的错误:
error CS0103: The name `displayFirstName' does not exist in the current
context
解决方案
为了修复CS0103错误,需要在声明或引用时更正变量或方法的名称。
更多信息
https://msdn.microsoft.com/en-us/library/t8zbaa6f.aspx