Compiler Error CS1933
更正此错误
从查询变量中移除该修饰符。
// cs1933.cs using System.Linq; using System.Collections; class P { const IEnumerable e = from x in new[] { 1, 2, 3 } select x; // CS1933 static int Main() { return 1; } }
// cs1933.cs using System.Linq; using System.Collections; class P { const IEnumerable e = from x in new[] { 1, 2, 3 } select x; // CS1933 static int Main() { return 1; } }