1.词汇
- Features related to the type system 和类型系统有关的特性
2.例句
-
C# 2 doesn’t tackle the issues of return type covariance and parameter contravariance for overriding members or implementing interfaces.
C#2没有解决重写成员或实现接口时返回类型协变和参数逆变的问题。
-
But it does improve the situation for creating delegate instances in certain situations.
但它确实改善了在某些情况下创建委托实例的情况。
-
C# 3 introduced a wealth of new concepts in the type system, most notably anonymous types, implicitly typed local variables, and extension methods.
C# 3在类型系统中引入了大量的新概念,最显著的是匿名类型、隐式类型的局部变量和扩展方法。
-
Anonymous types themselves are mostly present for the sake of LINQ, where it’s useful to be able to effectively create a data transfer type with a bunch of read-only properties without having to actually write the code for them.
匿名类型本身主要是为了LINQ而存在的,在LINQ中,能够有效地使用一堆只读属性创建一个数据传输类型,而不必实际编写这个数据类。
-
There’s nothing to stop them from being used outside LINQ, though, which makes life easier for demonstrations.
但是,没有什么可以阻止它们在LINQ之外被使用,它简化了代码。