问题
当尝试进入运行模式时,遇到了如下的错误:
error CS1519: Unexpected symbol `__' in class struct, or interface member declaration
原因
当标记在不属于它的位置时,就会导致CS1519错误。下面是导致错误的两种原因的例子:
此示例中显示的错误:
error CS1519: Unexpected symbol `j' in class struct, or interface member
declaration.
error CS1519: Unexpected symbol `Name' in class struct, or interface
member declaration.
解决方案
处理CS1519 错误:你需要保证每个方法、类或者变量声明只有一个用户定义的标识符。如果要声明同一类型的多个变量,请确保使用逗号分隔它们。
更多信息
https://msdn.microsoft.com/en-us/library/z2s6wcyt.aspx