logo search
Учебник_ПОА

C# Language Enhancements that Support linq

Following are some new language structures that are added to C# 3.0 to support LINQ:

Language Structure

Description

query expressions

A declarative query syntax used to query data from any LINQ-enabled data source.

implicitly typed variables

A variable, specified with the modifier var, which enables the compiler to infer the type of the variable.

object initializers

Enables the initialization of objects without explicitly calling a constructor for the object.

anonymous types

Enables the compiler to create objects without requiring that you specify a named data type. The type name is only available to the compiler.

extension methods

Enables the extension of any existing type by associating static methods to the type.

lambda expressions

An inline expression or statement block that can be used wherever a delegate type is expected.