System.Linq Namespace

Summary

The System.Linq namespace provides classes and interfaces that support querying objects, collections, and data sources. LINQ (Language Integrated Query) allows you to write queries directly in your programming language, making code more readable and maintainable.

Key features include:

  • Query operators for filtering, projection, sorting, grouping, and joining.
  • Support for querying various data sources like collections, databases, and XML.
  • Deferred execution of queries for performance optimization.

Members

Enumerable Class

Provides a set of static extension methods to query objects that implement IEnumerable<T>.

System.Linq

Queryable Class

Provides a set of static extension methods to query objects that implement IQueryable<T>.

System.Linq

IGrouping<TKey, TElement> Interface

Represents a collection of elements that share a common key.

System.Linq

ILookup<TKey, TElement> Interface

Represents a collection of keys, each associated with a collection of values.

System.Linq

OrderedEnumerable<TSource> Class

Represents a query that has been sorted.

System.Linq

OrderedEnumerable<TSource, TKey> Class

Represents a query that has been sorted with a specific key selector.

System.Linq

Lookup<TKey, TElement> Class

Represents a collection of keys, each associated with a collection of values. Implements ILookup<TKey, TElement>.

System.Linq