System.Linq Namespace
Classes
Enumerable
Represents a queryable collection of elements of a specified type. This is the primary entry point for LINQ to Objects queries.
View detailspublic static class Enumerable
Queryable
Provides static methods that support the creation and execution of IQueryable<T> objects. This is the primary entry point for LINQ to providers such as LINQ to SQL or LINQ to Entities.
View detailspublic static class Queryable
Interfaces
IEnumerable<T>
Supports iteration over a non-generic collection of objects. It is the base interface for all LINQ queries.
View detailspublic interface IEnumerable<out T> : IEnumerable
IQueryable<T>
Represents a query that can be executed. It is the base interface for LINQ providers.
View detailspublic interface IQueryable<out T> : IEnumerable<T>, IQueryable
IGrouping<TKey, TElement>
Represents a group of elements that have a common key. Used in group by operations.
View detailspublic interface IGrouping<out TKey, out TElement> : IEnumerable<TElement>
Extension Methods (from Enumerable)
Where<TSource>
Filters a sequence of values based on a predicate.
View detailspublic static IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate)
Select<TSource, TResult>
Projects each element of a sequence into a new form.
View detailspublic static IEnumerable<TResult> Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector)
OrderBy<TSource, TKey>
Sorts the elements of a sequence in ascending order according to a key.
View detailspublic static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
GroupBy<TSource, TKey>
Groups the elements of a sequence based on a specified key selector function.
View detailspublic static IEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)