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>
.
Queryable Class
Provides a set of static extension methods to query objects that implement IQueryable<T>
.
IGrouping<TKey, TElement> Interface
Represents a collection of elements that share a common key.
ILookup<TKey, TElement> Interface
Represents a collection of keys, each associated with a collection of values.
OrderedEnumerable<TSource, TKey> Class
Represents a query that has been sorted with a specific key selector.
Lookup<TKey, TElement> Class
Represents a collection of keys, each associated with a collection of values. Implements ILookup<TKey, TElement>
.