ObservableList<T> Class

public class ObservableList<T> : List<T>, 
IDisposable
This language is not supported or no code example is available.

Type Parameters

T

Name Description
Public property Capacity Gets or sets the total number of elements the internal data structure can hold without resizing. (inherited from List<T>).
Public property Count Gets the number of elements actually contained in the List<T>. (inherited from List<T>).
Public property Item(Int32) Gets or sets the element at the specified index. (inherited from List<T>).
Top
Methods
 
Name Description
Public method Add(T)
Public method AddRange(IEnumerable<T>)
Public method AsReadOnly Returns a read-only IList<T> wrapper for the current collection. (inherited from List<T>).
Public method BinarySearch(T, IComparer<T>) Searches the entire sorted List<T> for an element using the specified comparer and returns the zero-based index of the element. (inherited from List<T>).
Public method BinarySearch(Int32, Int32, T, IComparer<T>) Searches a range of elements in the sorted List<T> for an element using the specified comparer and returns the zero-based index of the element. (inherited from List<T>).
Public method BinarySearch(T) Searches the entire sorted List<T> for an element using the default comparer and returns the zero-based index of the element. (inherited from List<T>).
Public method Clear()
Public method Contains(T) Determines whether an element is in the List<T>. (inherited from List<T>).
Public method ConvertAll<TOutput>(Converter<T, TOutput>) Converts the elements in the current List<T> to another type, and returns a list containing the converted elements. (inherited from List<T>).
Public method CopyTo(T[], Int32) Copies the entire List<T> to a compatible one-dimensional array, starting at the specified index of the target array. (inherited from List<T>).
Public method CopyTo(Int32, T[], Int32, Int32) Copies a range of elements from the List<T> to a compatible one-dimensional array, starting at the specified index of the target array. (inherited from List<T>).
Public method CopyTo(T[]) Copies the entire List<T> to a compatible one-dimensional array, starting at the beginning of the target array. (inherited from List<T>).
Protected method Dispose(bool)
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (inherited from Object).
Public method Exists(Predicate<T>) Determines whether the List<T> contains elements that match the conditions defined by the specified predicate. (inherited from List<T>).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Find(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List<T>. (inherited from List<T>).
Public method FindAll(Predicate<T>) Retrieves all the elements that match the conditions defined by the specified predicate. (inherited from List<T>).
Public method FindIndex(Int32, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List<T> that extends from the specified index to the last element. (inherited from List<T>).
Public method FindIndex(Int32, Int32, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the List<T> that starts at the specified index and contains the specified number of elements. (inherited from List<T>).
Public method FindIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire List<T>. (inherited from List<T>).
Public method FindLast(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List<T>. (inherited from List<T>).
Public method FindLastIndex(Int32, Int32, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List<T> that contains the specified number of elements and ends at the specified index. (inherited from List<T>).
Public method FindLastIndex(Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire List<T>. (inherited from List<T>).
Public method FindLastIndex(Int32, Predicate<T>) Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the List<T> that extends from the first element to the specified index. (inherited from List<T>).
Public method ForEach(Action<T>) Performs the specified action on each element of the List<T>. (inherited from List<T>).
Public method GetEnumerator Returns an enumerator that iterates through the List<T>. (inherited from List<T>).
Public method GetHashCode Serves as a hash function for a particular type. (inherited from Object).
Public method GetRange(Int32, Int32) Creates a shallow copy of a range of elements in the source List<T>. (inherited from List<T>).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IndexOf(T, Int32, Int32) Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the List<T> that starts at the specified index and contains the specified number of elements. (inherited from List<T>).
Public method IndexOf(T) Searches for the specified object and returns the zero-based index of the first occurrence within the entire List<T>. (inherited from List<T>).
Public method IndexOf(T, Int32) Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the List<T> that extends from the specified index to the last element. (inherited from List<T>).
Public method Insert(Int32, T) Inserts an element into the List<T> at the specified index. (inherited from List<T>).
Public method InsertRange(Int32, IEnumerable<T>) Inserts the elements of a collection into the List<T> at the specified index. (inherited from List<T>).
Public method LastIndexOf(T, Int32) Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the List<T> that extends from the first element to the specified index. (inherited from List<T>).
Public method LastIndexOf(T, Int32, Int32) Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the List<T> that contains the specified number of elements and ends at the specified index. (inherited from List<T>).
Public method LastIndexOf(T) Searches for the specified object and returns the zero-based index of the last occurrence within the entire List<T>. (inherited from List<T>).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Remove(T)
Public method RemoveAll(Predicate<T>) Removes all the elements that match the conditions defined by the specified predicate. (inherited from List<T>).
Public method RemoveAt(Int32) Removes the element at the specified index of the List<T>. (inherited from List<T>).
Public method RemoveRange(Int32, Int32) Removes a range of elements from the List<T>. (inherited from List<T>).
Public method Reverse(Int32, Int32) Reverses the order of the elements in the specified range. (inherited from List<T>).
Public method Reverse Reverses the order of the elements in the entire List<T>. (inherited from List<T>).
Public method Sort(IComparer<T>) Sorts the elements in the entire List<T> using the specified comparer. (inherited from List<T>).
Public method Sort(Comparison<T>) Sorts the elements in the entire List<T> using the specified Comparison<T>. (inherited from List<T>).
Public method Sort Sorts the elements in the entire List<T> using the default comparer. (inherited from List<T>).
Public method Sort(Int32, Int32, IComparer<T>) Sorts the elements in a range of elements in List<T> using the specified comparer. (inherited from List<T>).
Public method ToArray Copies the elements of the List<T> to a new array. (inherited from List<T>).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method TrimExcess Sets the capacity to the actual number of elements in the List<T>, if that number is less than a threshold value. (inherited from List<T>).
Public method TrueForAll(Predicate<T>) Determines whether every element in the List<T> matches the conditions defined by the specified predicate. (inherited from List<T>).
Top
Name Description
Public extension method Aggregate<TSource, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, TSource, TAccumulate>, Func<TAccumulate, 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. (Defined by Enumerable).
Public extension method Aggregate<TSource, TAccumulate>(TAccumulate, Func<TAccumulate, TSource, TAccumulate>) Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value. (Defined by Enumerable).
Public extension method Aggregate<TSource>(Func<TSource, TSource, TSource>) Applies an accumulator function over a sequence. (Defined by Enumerable).
Public extension method All<TSource>(Func<TSource, Boolean>) Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable).
Public extension method Any<TSource>(Func<TSource, Boolean>) Determines whether any element of a sequence satisfies a condition. (Defined by Enumerable).
Public extension method Any<TSource>() Determines whether a sequence contains any elements. (Defined by Enumerable).
Public extension method Append<TSource>(TSource) (Defined by Enumerable).
Public extension method AsEnumerable<TSource>() Returns the input typed as IEnumerable<T>. (Defined by Enumerable).
Public extension method AsParallel() Enables parallelization of a query. (Defined by ParallelEnumerable).
Public extension method AsParallel<TSource>() Enables parallelization of a query. (Defined by ParallelEnumerable).
Public extension method AsQueryable() Converts an IEnumerable to an IQueryable. (Defined by Queryable).
Public extension method AsQueryable<TElement>() Converts a generic IEnumerable<T> to a generic IQueryable<T>. (Defined by Queryable).
Public extension method Average<TSource>(Func<TSource, Nullable<Single>>) 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, Nullable<Double>>) 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, Nullable<Int64>>) 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, Nullable<Int32>>) 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, Nullable<Decimal>>) 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. (Defined by Enumerable).
Public extension method Average<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Cast<TResult>() Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable).
Public extension method Concat<TSource>(IEnumerable<TSource>) Concatenates two sequences. (Defined by Enumerable).
Public extension method Contains<TSource>(TSource, IEqualityComparer<TSource>) Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>. (Defined by Enumerable).
Public extension method Contains<TSource>(TSource) Determines whether a sequence contains a specified element by using the default equality comparer. (Defined by Enumerable).
Public extension method Count<TSource>() Returns the number of elements in a sequence. (Defined by Enumerable).
Public extension method Count<TSource>(Func<TSource, Boolean>) Returns a number that represents how many elements in the specified sequence satisfy a condition. (Defined by Enumerable).
Public extension method DefaultIfEmpty<TSource>(TSource) Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty. (Defined by Enumerable).
Public extension method DefaultIfEmpty<TSource>() Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty. (Defined by Enumerable).
Public extension method Distinct<TSource>(IEqualityComparer<TSource>) Returns distinct elements from a sequence by using a specified IEqualityComparer<T> to compare values. (Defined by Enumerable).
Public extension method Distinct<TSource>() Returns distinct elements from a sequence by using the default equality comparer to compare values. (Defined by Enumerable).
Public extension method ElementAt<TSource>(Int32) Returns the element at a specified index in a sequence. (Defined by Enumerable).
Public extension method ElementAtOrDefault<TSource>(Int32) Returns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable).
Public extension method Except<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) Produces the set difference of two sequences by using the specified IEqualityComparer<T> to compare values. (Defined by Enumerable).
Public extension method Except<TSource>(IEnumerable<TSource>) Produces the set difference of two sequences by using the default equality comparer to compare values. (Defined by Enumerable).
Public extension method First<TSource>(Func<TSource, Boolean>) Returns the first element in a sequence that satisfies a specified condition. (Defined by Enumerable).
Public extension method First<TSource>() Returns the first element of a sequence. (Defined by Enumerable).
Public extension method FirstOrDefault<TSource>(Func<TSource, Boolean>) Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. (Defined by Enumerable).
Public extension method FirstOrDefault<TSource>() Returns the first element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey, TElement, TResult>(Func<TSource, TKey>, Func<TSource, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>) 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. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey, TResult>(Func<TSource, TKey>, Func<TKey, IEnumerable<TSource>, TResult>, IEqualityComparer<TKey>) 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. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey, TElement, TResult>(Func<TSource, TKey>, Func<TSource, TElement>, Func<TKey, IEnumerable<TElement>, 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. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey, TResult>(Func<TSource, TKey>, Func<TKey, IEnumerable<TSource>, 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. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey, TElement>(Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) 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. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey, TElement>(Func<TSource, TKey>, Func<TSource, 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. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey>(Func<TSource, TKey>, IEqualityComparer<TKey>) Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer. (Defined by Enumerable).
Public extension method GroupBy<TSource, TKey>(Func<TSource, TKey>) Groups the elements of a sequence according to a specified key selector function. (Defined by Enumerable).
Public extension method GroupJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, IEnumerable<TInner>, 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. (Defined by Enumerable).
Public extension method GroupJoin<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>) Correlates the elements of two sequences based on key equality and groups the results. A specified IEqualityComparer<T> is used to compare keys. (Defined by Enumerable).
Public extension method Intersect<TSource>(IEnumerable<TSource>) Produces the set intersection of two sequences by using the default equality comparer to compare values. (Defined by Enumerable).
Public extension method Intersect<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) Produces the set intersection of two sequences by using the specified IEqualityComparer<T> to compare values. (Defined by Enumerable).
Public extension method Join<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>) Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys. (Defined by Enumerable).
Public extension method Join<TOuter, TInner, TKey, TResult>(IEnumerable<TInner>, Func<TOuter, TKey>, Func<TInner, TKey>, Func<TOuter, TInner, TResult>, IEqualityComparer<TKey>) Correlates the elements of two sequences based on matching keys. A specified IEqualityComparer<T> is used to compare keys. (Defined by Enumerable).
Public extension method Last<TSource>() Returns the last element of a sequence. (Defined by Enumerable).
Public extension method Last<TSource>(Func<TSource, Boolean>) Returns the last element of a sequence that satisfies a specified condition. (Defined by Enumerable).
Public extension method LastOrDefault<TSource>() Returns the last element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable).
Public extension method LastOrDefault<TSource>(Func<TSource, Boolean>) Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. (Defined by Enumerable).
Public extension method LongCount<TSource>() Returns an Int64 that represents the total number of elements in a sequence. (Defined by Enumerable).
Public extension method LongCount<TSource>(Func<TSource, Boolean>) Returns an Int64 that represents how many elements in a sequence satisfy a condition. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Nullable<Int64>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Int64>) Invokes a transform function on each element of a sequence and returns the maximum Int64 value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Nullable<Int32>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value. (Defined by Enumerable).
Public extension method Max<TSource>() Returns the maximum value in a generic sequence. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Int32>) Invokes a transform function on each element of a sequence and returns the maximum Int32 value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Double>) Invokes a transform function on each element of a sequence and returns the maximum Double value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Single>) Invokes a transform function on each element of a sequence and returns the maximum Single value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Nullable<Single>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Single value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Nullable<Double>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Double value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Decimal>) Invokes a transform function on each element of a sequence and returns the maximum Decimal value. (Defined by Enumerable).
Public extension method Max<TSource>(Func<TSource, Nullable<Decimal>>) Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value. (Defined by Enumerable).
Public extension method Max<TSource, TResult>(Func<TSource, TResult>) Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. (Defined by Enumerable).
Public extension method Min<TSource>() Returns the minimum value in a generic sequence. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Int64>) Invokes a transform function on each element of a sequence and returns the minimum Int64 value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Nullable<Int64>>) Invokes a transform function on each element of a sequence and returns the minimum nullable Int64 value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Single>) Invokes a transform function on each element of a sequence and returns the minimum Single value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Nullable<Single>>) Invokes a transform function on each element of a sequence and returns the minimum nullable Single value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Double>) Invokes a transform function on each element of a sequence and returns the minimum Double value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Nullable<Double>>) Invokes a transform function on each element of a sequence and returns the minimum nullable Double value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Decimal>) Invokes a transform function on each element of a sequence and returns the minimum Decimal value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Nullable<Decimal>>) Invokes a transform function on each element of a sequence and returns the minimum nullable Decimal value. (Defined by Enumerable).
Public extension method Min<TSource, TResult>(Func<TSource, TResult>) Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Nullable<Int32>>) Invokes a transform function on each element of a sequence and returns the minimum nullable Int32 value. (Defined by Enumerable).
Public extension method Min<TSource>(Func<TSource, Int32>) Invokes a transform function on each element of a sequence and returns the minimum Int32 value. (Defined by Enumerable).
Public extension method OfType<TResult>() Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable).
Public extension method OrderBy<TSource, TKey>(Func<TSource, TKey>) Sorts the elements of a sequence in ascending order according to a key. (Defined by Enumerable).
Public extension method OrderBy<TSource, TKey>(Func<TSource, TKey>, IComparer<TKey>) Sorts the elements of a sequence in ascending order by using a specified comparer. (Defined by Enumerable).
Public extension method OrderByDescending<TSource, TKey>(Func<TSource, TKey>, IComparer<TKey>) Sorts the elements of a sequence in descending order by using a specified comparer. (Defined by Enumerable).
Public extension method OrderByDescending<TSource, TKey>(Func<TSource, TKey>) Sorts the elements of a sequence in descending order according to a key. (Defined by Enumerable).
Public extension method Prepend<TSource>(TSource) (Defined by Enumerable).
Public extension method Reverse<TSource>() Inverts the order of the elements in a sequence. (Defined by Enumerable).
Public extension method Select<TSource, TResult>(Func<TSource, Int32, TResult>) Projects each element of a sequence into a new form by incorporating the element's index. (Defined by Enumerable).
Public extension method Select<TSource, TResult>(Func<TSource, TResult>) Projects each element of a sequence into a new form. (Defined by Enumerable).
Public extension method SelectMany<TSource, TResult>(Func<TSource, IEnumerable<TResult>>) Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence. (Defined by Enumerable).
Public extension method SelectMany<TSource, TResult>(Func<TSource, Int32, IEnumerable<TResult>>) Projects each element of a sequence to an IEnumerable<T>, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element. (Defined by Enumerable).
Public extension method SelectMany<TSource, TCollection, TResult>(Func<TSource, Int32, IEnumerable<TCollection>>, Func<TSource, TCollection, TResult>) Projects each element of a sequence to an IEnumerable<T>, 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. (Defined by Enumerable).
Public extension method SelectMany<TSource, TCollection, TResult>(Func<TSource, IEnumerable<TCollection>>, Func<TSource, TCollection, TResult>) Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. (Defined by Enumerable).
Public extension method SequenceEqual<TSource>(IEnumerable<TSource>) Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. (Defined by Enumerable).
Public extension method SequenceEqual<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparer<T>. (Defined by Enumerable).
Public extension method Single<TSource>(Func<TSource, Boolean>) Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists. (Defined by Enumerable).
Public extension method Single<TSource>() Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Defined by Enumerable).
Public extension method SingleOrDefault<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method SingleOrDefault<TSource>() 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. (Defined by Enumerable).
Public extension method Skip<TSource>(Int32) Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable).
Public extension method SkipWhile<TSource>(Func<TSource, Boolean>) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. (Defined by Enumerable).
Public extension method SkipWhile<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, Nullable<Double>>) 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, Nullable<Single>>) 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, Nullable<Int64>>) 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, Nullable<Int32>>) 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method Sum<TSource>(Func<TSource, Nullable<Decimal>>) 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. (Defined by Enumerable).
Public extension method Take<TSource>(Int32) Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable).
Public extension method TakeWhile<TSource>(Func<TSource, 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. (Defined by Enumerable).
Public extension method TakeWhile<TSource>(Func<TSource, Boolean>) Returns elements from a sequence as long as a specified condition is true. (Defined by Enumerable).
Public extension method ToArray<TSource>() Creates an array from a IEnumerable<T>. (Defined by Enumerable).
Public extension method ToDictionary<TSource, TKey, TElement>(Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function, a comparer, and an element selector function. (Defined by Enumerable).
Public extension method ToDictionary<TSource, TKey, TElement>(Func<TSource, TKey>, Func<TSource, TElement>) Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to specified key selector and element selector functions. (Defined by Enumerable).
Public extension method ToDictionary<TSource, TKey>(Func<TSource, TKey>, IEqualityComparer<TKey>) Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function and key comparer. (Defined by Enumerable).
Public extension method ToDictionary<TSource, TKey>(Func<TSource, TKey>) Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function. (Defined by Enumerable).
Public extension method ToHashSet<TSource>(IEqualityComparer<TSource>) (Defined by Enumerable).
Public extension method ToHashSet<TSource>() (Defined by Enumerable).
Public extension method ToList<TSource>() Creates a List<T> from an IEnumerable<T>. (Defined by Enumerable).
Public extension method ToLookup<TSource, TKey>(Func<TSource, TKey>, IEqualityComparer<TKey>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function and key comparer. (Defined by Enumerable).
Public extension method ToLookup<TSource, TKey, TElement>(Func<TSource, TKey>, Func<TSource, TElement>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to specified key selector and element selector functions. (Defined by Enumerable).
Public extension method ToLookup<TSource, TKey, TElement>(Func<TSource, TKey>, Func<TSource, TElement>, IEqualityComparer<TKey>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function, a comparer and an element selector function. (Defined by Enumerable).
Public extension method ToLookup<TSource, TKey>(Func<TSource, TKey>) Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function. (Defined by Enumerable).
Public extension method Union<TSource>(IEnumerable<TSource>) Produces the set union of two sequences by using the default equality comparer. (Defined by Enumerable).
Public extension method Union<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) Produces the set union of two sequences by using a specified IEqualityComparer<T>. (Defined by Enumerable).
Public extension method Where<TSource>(Func<TSource, Int32, Boolean>) Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function. (Defined by Enumerable).
Public extension method Where<TSource>(Func<TSource, Boolean>) Filters a sequence of values based on a predicate. (Defined by Enumerable).
Public extension method Zip<TFirst, TSecond, TResult>(IEnumerable<TSecond>, Func<TFirst, TSecond, TResult>) Merges two sequences by using the specified predicate function. (Defined by Enumerable).
Top

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

.NET Core

Supported in: 5.0+, 6.0+

In this article

Definition