不是应该支持“collection initializers“吗?$ dpkg -s mono-gmcs
...
With C# 3.0 it supports:
- Language Integrated Query (LINQ)
- object initializers
- collection initializers
- anonymous types
- local variable type inference
...
为啥
代码: 全选
IList<int> a = new List<int> { 1, 2, 3 };
error CS1644: Feature `collection initializers' cannot be used because it is not part of the C# 2.0 language specification