Anonymous types provide a convenient way to encapsulate a set of read-only properties into a single object without having to first explicitly define a type.
匿名型别提供便利的方式将唯读属性集封装至单一物件,而不用先明确定义型别。
Anonymous types should be avoided for a number of reasons.
基于以下几个原因,应该避免使用匿名类型。
Anonymous types still often must be named.
还是必须对匿名类型进行命名。
Anonymous types must be declared with an object initializer.
匿名类型必须用对象初始值设定项加以声明。
Anonymous types in the Item's complex type.
条目的复合类型中的Anonymous类型。