C#4语法
在C# 4.0中可以通过委托某个成员的实现来实现一个接口,例如下面的代码:
public class Foo : IList
{
private List _Collection implements IList;
public Foo()
{
_Collection = new List();
}
}
元组:
var list = new List<Tuple<int, string, object>>()
{
Tuple.Create(1, "a", new object()),
Tuple.Create(2, "b", new object()),
};