C#匿名类型 - Anonymous Types

The type of each property is inferred by the compiler.

  匿名类型属性为只读,被编译器生成,每个属性被编译器推断生成。

  匿名类型最常用场景为,当一个类数据过大,而我们只想抽取其中几个属性来使用时。例如:

  也可以生成匿名类型数组:

http://msdn.microsoft.com/zh-cn/library/bb397696.aspx

相关文章: