Finally, we need implicitly typed variables, so that we can assign the query to a variable without having to declare its type explicitly.
最后,我们需要使用隐式类型化变量,这样就可以为变量分配查询,不必显式声明其类型。
The syntax of array creation expressions (§7.5.10.2) is extended to support implicitly typed array creation expressions.
扩展数组创建表达式(§7.5.10.2)的语法用以支持隐型数组创建表达式。
Implicitly typed local variables, which permit the type of local variables to be inferred from the expressions used to initialize them.
隐型局部变量,允许局部变量的类型从初始化它们的表达式推导而来。
Implicitly typed arrays, a form of array creation and initialization that infers the element type of the array from an array initializer.
数组创建和初始化的形式,它从数组初始化器推导出数组的元素类型。
Implicitly-typed arrays are usually used in query expressions together with anonymous types and object and collection initializers.
隐含型别阵列通常是在查询运算式中与匿名型别及物件和集合初始设定式一起使用。
In the previous example, notice that with implicitly-typed arrays, no square brackets are used on the left side of the initialization statement.
请注意,在上一个示例中,没有在初始化语句的左侧对隐式类型的数组使用方括号。
In the previous example, notice that with implicitly-typed arrays, no square brackets are used on the left side of the initialization statement.
请注意,在上一个示例中,没有在初始化语句的左侧对隐式类型的数组使用方括号。
应用推荐