Skip to main content
.NET Framework Class Library
Enumerable Class

Provides a set of static (Shared in Visual Basic) methods for querying objects that implement IEnumerableT.

Inheritance Hierarchy
SystemObject
  System.LinqEnumerable

Namespace:   System.Linq
Assemblies:   System.Linq (in System.Linq.dll)
  System.Core (in System.Core.dll)
Syntax
<[%$TOPIC/bb345746_en-us_VS_110_3_0_0_0_0%]> _
Public NotInheritable Class Enumerable
public static class Enumerable
[[%$TOPIC/bb345746_en-us_VS_110_3_0_2_0_0%]]
public ref class Enumerable abstract sealed
[<[%$TOPIC/bb345746_en-us_VS_110_3_0_3_0_0%]>]
[<[%$TOPIC/bb345746_en-us_VS_110_3_0_3_0_1%]>]
type Enumerable =  class end
public final class Enumerable

The Enumerable type exposes the following members.

Methods
  NameDescription
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AggregateTSource(IEnumerableTSource, FuncTSource, TSource, TSource)Applies an accumulator function over a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AggregateTSource, TAccumulate(IEnumerableTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate)Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AggregateTSource, TAccumulate, TResult(IEnumerableTSource, TAccumulate, FuncTAccumulate, TSource, TAccumulate, FuncTAccumulate, TResult)Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AllTSourceDetermines whether all elements of a sequence satisfy a condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AnyTSource(IEnumerableTSource)Determines whether a sequence contains any elements.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AnyTSource(IEnumerableTSource, FuncTSource, Boolean)Determines whether any element of a sequence satisfies a condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AsEnumerableTSourceReturns the input typed as IEnumerableT.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableDecimal)Computes the average of a sequence of Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableNullableDecimal)Computes the average of a sequence of nullable Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableDouble)Computes the average of a sequence of Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableNullableDouble)Computes the average of a sequence of nullable Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableInt32)Computes the average of a sequence of Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableNullableInt32)Computes the average of a sequence of nullable Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableInt64)Computes the average of a sequence of Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableNullableInt64)Computes the average of a sequence of nullable Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableNullableSingle)Computes the average of a sequence of nullable Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Average(IEnumerableSingle)Computes the average of a sequence of Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, Decimal)Computes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, Double)Computes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, Int32)Computes the average of a sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, Int64)Computes the average of a sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, NullableDecimal)Computes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, NullableDouble)Computes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, NullableInt32)Computes the average of a sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, NullableInt64)Computes the average of a sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, NullableSingle)Computes the average of a sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library AverageTSource(IEnumerableTSource, FuncTSource, Single)Computes the average of a sequence of Single values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library CastTResultCasts the elements of an IEnumerable to the specified type.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ConcatTSourceConcatenates two sequences.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ContainsTSource(IEnumerableTSource, TSource)Determines whether a sequence contains a specified element by using the default equality comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ContainsTSource(IEnumerableTSource, TSource, IEqualityComparerTSource)Determines whether a sequence contains a specified element by using a specified IEqualityComparerT.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library CountTSource(IEnumerableTSource)Returns the number of elements in a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library CountTSource(IEnumerableTSource, FuncTSource, Boolean)Returns a number that represents how many elements in the specified sequence satisfy a condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library DefaultIfEmptyTSource(IEnumerableTSource)Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library DefaultIfEmptyTSource(IEnumerableTSource, TSource)Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library DistinctTSource(IEnumerableTSource)Returns distinct elements from a sequence by using the default equality comparer to compare values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library DistinctTSource(IEnumerableTSource, IEqualityComparerTSource)Returns distinct elements from a sequence by using a specified IEqualityComparerT to compare values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ElementAtTSourceReturns the element at a specified index in a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ElementAtOrDefaultTSourceReturns the element at a specified index in a sequence or a default value if the index is out of range.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library EmptyTResultReturns an empty IEnumerableT that has the specified type argument.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ExceptTSource(IEnumerableTSource, IEnumerableTSource)Produces the set difference of two sequences by using the default equality comparer to compare values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ExceptTSource(IEnumerableTSource, IEnumerableTSource, IEqualityComparerTSource)Produces the set difference of two sequences by using the specified IEqualityComparerT to compare values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library FirstTSource(IEnumerableTSource)Returns the first element of a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library FirstTSource(IEnumerableTSource, FuncTSource, Boolean)Returns the first element in a sequence that satisfies a specified condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library FirstOrDefaultTSource(IEnumerableTSource)Returns the first element of a sequence, or a default value if the sequence contains no elements.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library FirstOrDefaultTSource(IEnumerableTSource, FuncTSource, Boolean)Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)Groups the elements of a sequence according to a specified key selector function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement)Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey, TResult(IEnumerableTSource, FuncTSource, TKey, FuncTKey, IEnumerableTSource, TResult)Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement, IEqualityComparerTKey)Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey, TResult(IEnumerableTSource, FuncTSource, TKey, FuncTKey, IEnumerableTSource, TResult, IEqualityComparerTKey)Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey, TElement, TResult(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement, FuncTKey, IEnumerableTElement, TResult)Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupByTSource, TKey, TElement, TResult(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement, FuncTKey, IEnumerableTElement, TResult, IEqualityComparerTKey)Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupJoinTOuter, TInner, TKey, TResult(IEnumerableTOuter, IEnumerableTInner, FuncTOuter, TKey, FuncTInner, TKey, FuncTOuter, IEnumerableTInner, TResult)Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GroupJoinTOuter, TInner, TKey, TResult(IEnumerableTOuter, IEnumerableTInner, FuncTOuter, TKey, FuncTInner, TKey, FuncTOuter, IEnumerableTInner, TResult, IEqualityComparerTKey)Correlates the elements of two sequences based on key equality and groups the results. A specified IEqualityComparerT is used to compare keys.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library IntersectTSource(IEnumerableTSource, IEnumerableTSource)Produces the set intersection of two sequences by using the default equality comparer to compare values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library IntersectTSource(IEnumerableTSource, IEnumerableTSource, IEqualityComparerTSource)Produces the set intersection of two sequences by using the specified IEqualityComparerT to compare values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library JoinTOuter, TInner, TKey, TResult(IEnumerableTOuter, IEnumerableTInner, FuncTOuter, TKey, FuncTInner, TKey, FuncTOuter, TInner, TResult)Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library JoinTOuter, TInner, TKey, TResult(IEnumerableTOuter, IEnumerableTInner, FuncTOuter, TKey, FuncTInner, TKey, FuncTOuter, TInner, TResult, IEqualityComparerTKey)Correlates the elements of two sequences based on matching keys. A specified IEqualityComparerT is used to compare keys.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library LastTSource(IEnumerableTSource)Returns the last element of a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library LastTSource(IEnumerableTSource, FuncTSource, Boolean)Returns the last element of a sequence that satisfies a specified condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library LastOrDefaultTSource(IEnumerableTSource)Returns the last element of a sequence, or a default value if the sequence contains no elements.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library LastOrDefaultTSource(IEnumerableTSource, FuncTSource, Boolean)Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library LongCountTSource(IEnumerableTSource)Returns an Int64 that represents the total number of elements in a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library LongCountTSource(IEnumerableTSource, FuncTSource, Boolean)Returns an Int64 that represents how many elements in a sequence satisfy a condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableDecimal)Returns the maximum value in a sequence of Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableNullableDecimal)Returns the maximum value in a sequence of nullable Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableDouble)Returns the maximum value in a sequence of Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableNullableDouble)Returns the maximum value in a sequence of nullable Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableInt32)Returns the maximum value in a sequence of Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableNullableInt32)Returns the maximum value in a sequence of nullable Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableInt64)Returns the maximum value in a sequence of Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableNullableInt64)Returns the maximum value in a sequence of nullable Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableNullableSingle)Returns the maximum value in a sequence of nullable Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Max(IEnumerableSingle)Returns the maximum value in a sequence of Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource)Returns the maximum value in a generic sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, Decimal)Invokes a transform function on each element of a sequence and returns the maximum Decimal value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, Double)Invokes a transform function on each element of a sequence and returns the maximum Double value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, Int32)Invokes a transform function on each element of a sequence and returns the maximum Int32 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, Int64)Invokes a transform function on each element of a sequence and returns the maximum Int64 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, NullableDecimal)Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, NullableDouble)Invokes a transform function on each element of a sequence and returns the maximum nullable Double value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, NullableInt32)Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, NullableInt64)Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, NullableSingle)Invokes a transform function on each element of a sequence and returns the maximum nullable Single value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource(IEnumerableTSource, FuncTSource, Single)Invokes a transform function on each element of a sequence and returns the maximum Single value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MaxTSource, TResult(IEnumerableTSource, FuncTSource, TResult)Invokes a transform function on each element of a generic sequence and returns the maximum resulting value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableDecimal)Returns the minimum value in a sequence of Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableNullableDecimal)Returns the minimum value in a sequence of nullable Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableDouble)Returns the minimum value in a sequence of Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableNullableDouble)Returns the minimum value in a sequence of nullable Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableInt32)Returns the minimum value in a sequence of Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableNullableInt32)Returns the minimum value in a sequence of nullable Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableInt64)Returns the minimum value in a sequence of Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableNullableInt64)Returns the minimum value in a sequence of nullable Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableNullableSingle)Returns the minimum value in a sequence of nullable Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Min(IEnumerableSingle)Returns the minimum value in a sequence of Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource)Returns the minimum value in a generic sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, Decimal)Invokes a transform function on each element of a sequence and returns the minimum Decimal value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, Double)Invokes a transform function on each element of a sequence and returns the minimum Double value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, Int32)Invokes a transform function on each element of a sequence and returns the minimum Int32 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, Int64)Invokes a transform function on each element of a sequence and returns the minimum Int64 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, NullableDecimal)Invokes a transform function on each element of a sequence and returns the minimum nullable Decimal value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, NullableDouble)Invokes a transform function on each element of a sequence and returns the minimum nullable Double value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, NullableInt32)Invokes a transform function on each element of a sequence and returns the minimum nullable Int32 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, NullableInt64)Invokes a transform function on each element of a sequence and returns the minimum nullable Int64 value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, NullableSingle)Invokes a transform function on each element of a sequence and returns the minimum nullable Single value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource(IEnumerableTSource, FuncTSource, Single)Invokes a transform function on each element of a sequence and returns the minimum Single value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library MinTSource, TResult(IEnumerableTSource, FuncTSource, TResult)Invokes a transform function on each element of a generic sequence and returns the minimum resulting value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library OfTypeTResultFilters the elements of an IEnumerable based on a specified type.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library OrderByTSource, TKey(IEnumerableTSource, FuncTSource, TKey)Sorts the elements of a sequence in ascending order according to a key.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library OrderByTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)Sorts the elements of a sequence in ascending order by using a specified comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library OrderByDescendingTSource, TKey(IEnumerableTSource, FuncTSource, TKey)Sorts the elements of a sequence in descending order according to a key.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library OrderByDescendingTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IComparerTKey)Sorts the elements of a sequence in descending order by using a specified comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library RangeGenerates a sequence of integral numbers within a specified range.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library RepeatTResultGenerates a sequence that contains one repeated value.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ReverseTSourceInverts the order of the elements in a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SelectTSource, TResult(IEnumerableTSource, FuncTSource, TResult)Projects each element of a sequence into a new form.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SelectTSource, TResult(IEnumerableTSource, FuncTSource, Int32, TResult)Projects each element of a sequence into a new form by incorporating the element's index.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SelectManyTSource, TResult(IEnumerableTSource, FuncTSource, IEnumerableTResult)Projects each element of a sequence to an IEnumerableT and flattens the resulting sequences into one sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SelectManyTSource, TResult(IEnumerableTSource, FuncTSource, Int32, IEnumerableTResult)Projects each element of a sequence to an IEnumerableT, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SelectManyTSource, TCollection, TResult(IEnumerableTSource, FuncTSource, IEnumerableTCollection, FuncTSource, TCollection, TResult)Projects each element of a sequence to an IEnumerableT, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SelectManyTSource, TCollection, TResult(IEnumerableTSource, FuncTSource, Int32, IEnumerableTCollection, FuncTSource, TCollection, TResult)Projects each element of a sequence to an IEnumerableT, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SequenceEqualTSource(IEnumerableTSource, IEnumerableTSource)Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SequenceEqualTSource(IEnumerableTSource, IEnumerableTSource, IEqualityComparerTSource)Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparerT.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SingleTSource(IEnumerableTSource)Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SingleTSource(IEnumerableTSource, FuncTSource, Boolean)Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SingleOrDefaultTSource(IEnumerableTSource)Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SingleOrDefaultTSource(IEnumerableTSource, FuncTSource, Boolean)Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SkipTSourceBypasses a specified number of elements in a sequence and then returns the remaining elements.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SkipWhileTSource(IEnumerableTSource, FuncTSource, Boolean)Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SkipWhileTSource(IEnumerableTSource, FuncTSource, Int32, Boolean)Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableDecimal)Computes the sum of a sequence of Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableNullableDecimal)Computes the sum of a sequence of nullable Decimal values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableDouble)Computes the sum of a sequence of Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableNullableDouble)Computes the sum of a sequence of nullable Double values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableInt32)Computes the sum of a sequence of Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableNullableInt32)Computes the sum of a sequence of nullable Int32 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableInt64)Computes the sum of a sequence of Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableNullableInt64)Computes the sum of a sequence of nullable Int64 values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableNullableSingle)Computes the sum of a sequence of nullable Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Sum(IEnumerableSingle)Computes the sum of a sequence of Single values.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, Decimal)Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, Double)Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, Int32)Computes the sum of the sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, Int64)Computes the sum of the sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, NullableDecimal)Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, NullableDouble)Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, NullableInt32)Computes the sum of the sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, NullableInt64)Computes the sum of the sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, NullableSingle)Computes the sum of the sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library SumTSource(IEnumerableTSource, FuncTSource, Single)Computes the sum of the sequence of Single values that are obtained by invoking a transform function on each element of the input sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library TakeTSourceReturns a specified number of contiguous elements from the start of a sequence.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library TakeWhileTSource(IEnumerableTSource, FuncTSource, Boolean)Returns elements from a sequence as long as a specified condition is true.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library TakeWhileTSource(IEnumerableTSource, FuncTSource, Int32, Boolean)Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ThenByTSource, TKey(IOrderedEnumerableTSource, FuncTSource, TKey)Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ThenByTSource, TKey(IOrderedEnumerableTSource, FuncTSource, TKey, IComparerTKey)Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ThenByDescendingTSource, TKey(IOrderedEnumerableTSource, FuncTSource, TKey)Performs a subsequent ordering of the elements in a sequence in descending order, according to a key.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ThenByDescendingTSource, TKey(IOrderedEnumerableTSource, FuncTSource, TKey, IComparerTKey)Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToArrayTSourceCreates an array from a IEnumerableT.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDictionaryTSource, TKey(IEnumerableTSource, FuncTSource, TKey)Creates a DictionaryTKey, TValue from an IEnumerableT according to a specified key selector function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDictionaryTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)Creates a DictionaryTKey, TValue from an IEnumerableT according to a specified key selector function and key comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDictionaryTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement)Creates a DictionaryTKey, TValue from an IEnumerableT according to specified key selector and element selector functions.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToDictionaryTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement, IEqualityComparerTKey)Creates a DictionaryTKey, TValue from an IEnumerableT according to a specified key selector function, a comparer, and an element selector function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToListTSourceCreates a ListT from an IEnumerableT.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToLookupTSource, TKey(IEnumerableTSource, FuncTSource, TKey)Creates a LookupTKey, TElement from an IEnumerableT according to a specified key selector function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToLookupTSource, TKey(IEnumerableTSource, FuncTSource, TKey, IEqualityComparerTKey)Creates a LookupTKey, TElement from an IEnumerableT according to a specified key selector function and key comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToLookupTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement)Creates a LookupTKey, TElement from an IEnumerableT according to specified key selector and element selector functions.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library ToLookupTSource, TKey, TElement(IEnumerableTSource, FuncTSource, TKey, FuncTSource, TElement, IEqualityComparerTKey)Creates a LookupTKey, TElement from an IEnumerableT according to a specified key selector function, a comparer and an element selector function.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library UnionTSource(IEnumerableTSource, IEnumerableTSource)Produces the set union of two sequences by using the default equality comparer.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library UnionTSource(IEnumerableTSource, IEnumerableTSource, IEqualityComparerTSource)Produces the set union of two sequences by using a specified IEqualityComparerT.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library WhereTSource(IEnumerableTSource, FuncTSource, Boolean)Filters a sequence of values based on a predicate.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library WhereTSource(IEnumerableTSource, FuncTSource, Int32, Boolean)Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
Public method Static member Supported by Portable Class Library ZipTFirst, TSecond, TResultApplies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
Top
Remarks

The methods in this class provide an implementation of the standard query operators for querying data sources that implement IEnumerableT. The standard query operators are general purpose methods that follow the LINQ pattern and enable you to express traversal, filter, and projection operations over data in any .NET-based programming language.

The majority of the methods in this class are defined as extension methods that extend IEnumerableT. This means they can be called like an instance method on any object that implements IEnumerableT.

Methods that are used in a query that returns a sequence of values do not consume the target data until the query object is enumerated. This is known as deferred execution. Methods that are used in a query that returns a singleton value execute and consume the target data immediately.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.