dundas.linq.Enumerable Class

 
 

Properties

 
  Name Description
 
 

Methods

 
  Name Description

Static
all Determines whether all elements of a sequence satisfy a condition.

Static
any Determines whether any element of a sequence satisfies a condition.

Static
concat Concatenates two sequences.

Static
contains Determines whether a sequence contains a specified element by using a specified equality comparer.

Static
count Returns the number of elements in a sequence. If "predicate" is provided, returns a number that represents how many elements in the specified sequence satisfy a condition.

Static
defaultIfEmpty Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.

Static
distinct Returns distinct elements from a sequence by using the equality comparer to compare values.

Static
empty Returns an enumerable with no elements.

Static
except Produces the set difference of two sequences, optionally using the specified equality comparer to compare values.

Static
first Returns the first element of the sequence. If "predicate" is provided, returns the first element that satisfies that condition.

Static
forEach Applies a function to every element in the sequence.

Static
groupBy Groups elements of a sequence according to a specified key selector function.

Static
indexOf Returns the index where the element equal to value first appears in the sequence, optionally using an equality comparer to compare the value to elements in the sequence.

Static
intersect Produces the set intersection of two sequences optionally using an equality comparer to compare values.

Static
join Correlates the elements of two sequences based on matching keys. If "equalityComparer" is not provided, the default comparer is used to compare keys.

Static
last Returns the last element of the sequence. If "predicate" is provided, returns the last element that satisfies that condition.

Static
max Returns the maximum value in a sequence of (possibly null) values.

Static
maxBy Returns the first element which contains the maximum value in a sequence of (possibly null) values.

Static
min Returns the minimum value in a sequence of (possibly null) values.

Static
minBy Returns the first element which contains the minimum value in a sequence of (possibly null) values.

Static
orderBy Sorts the elements of a sequence in ascending order according to a key.

Static
range Generates a sequence of integral numbers within a specified range.

Static
repeat Generates a sequence that contains one repeated value.

Static
select Projects each element of a sequence into a new form. The element's index is provided for the transformation.

Static
selectMany Projects each element of a sequence to an enumerable, 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.

Static
sequenceEqual Determines whether two sequences are equal.

Static
sum Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.

Static
take Returns the specified number of contiguous elements from the start of a sequence.

Static
takeWhile Returns elements from a sequence as long as a specified condition is true.

Static
toArray Creates an array from an enumerable.

Static
union Produces the set union of two sequences optionally using an equality comparer to compare values.

Static
where Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.