更新:2007 年 11 月
错误消息
预处理器指令必须作为一行的第一个非空白字符出现
在行上发现了预处理器指令,并且它不是该行上的第一个标记。指令必须是该行上的第一个标记。
下面的示例生成 CS1040:
// CS1040.cs
/* Define a symbol, X */ #define X   // CS1040
// try the following two lines instead
// /* Define a symbol, X */
// #define X
public class MyClass
{
   public static void Main()
   {
   }
}