【发布时间】:2017-01-03 12:05:07
【问题描述】:
怎么了
using T = int;
?
导致编译器错误CS 1001 Identifier expected
【问题讨论】:
标签: c# compiler-errors typedef using
怎么了
using T = int;
?
导致编译器错误CS 1001 Identifier expected
【问题讨论】:
标签: c# compiler-errors typedef using
你必须写
using T = System.Int32;
因为int 只是System.Int32 的简写,而这些简写没有在语言规范中实现(即,int 不是根据规范的标识符)。您需要提供完整的限定名称。
【讨论】: