Readonly isReadonly keysReadonly lengthGets the number of elements contained in the ICollection
Readonly valuesAdds an item to the ICollection
The object to add to the ICollection
Returns true if all the items match the predicate, otherwise false
Returns true if any of the items match the predicate, otherwise false
Optional predicate: Predicate<KeyValuePair<TKey, TValue>>if (myEnumerable.any()) {
// do something because the enumerable has elements
}
let myEnumerable = new ArrayEnumerable([1, 2, 3, 4]);
if (myEnumerable.any((i) => i == 2)) {
// the enumerable contains a '2'
}
Adds a value to the end of the sequence.
Returns the average of the numbers selected by the selector
Concatenates two sequences.
Determines whether the ICollection
The object to locate in the ICollection
Copies the elements of the ICollection
The one-dimensional Array that is the destination of the elements copied from ICollection
The zero-based index in array at which copying begins.
Returns the unique items designated by the selector
Returns the first item in the enumerable
Returns the first item in the enumerable that matches the predicate
Returns the first item in the enumerable or null
Returns the first item in the enumerable that matches the predicate or null
Iterates over the enumerable and performs the callback on each item. Return false to break.
returns an Enumerator for the items
Groups the items by the key selector using the default comparer
Groups the items by the key selector using the specified comparer
Returns the item at the specified index
The index of the item to return
Returns the last item in the enumerable
Returns the last item in the enumerable that matches the predicate
Returns the last item in the enumerable or null
Returns the last item in the enumerable that matches the predicate or null
Returns the largest number designated by the selector
Returns the smallest number designated by the selector
Returns an enumerable of items that match the type
the type
Orders the enumerable by the the selector and optional comparer ascending
Optional comparer: IComparer<R>Orders the enumerable by the the selector and optional comparer descending
Optional comparer: IComparer<R>Adds a value to the beginning of the sequence.
Removes the first occurrence of a specific object from the ICollection
Selects the items by the selector
Returns a single element only if there is one element in the enumerable
InvalidOperationException if there is not exactly one item in the enumerable
Returns a single element only if there is one element in the enumerable that matches the predicate
InvalidOperationException if there is not exactly one item in the enumerable that matches the predicate
Returns a single element only if there is one element in the enumerable. If there are no items in the enumerable, then null is returned
InvalidOperationException if there is not exactly one or zero items in the enumerable
Returns a single element only if there is one element in the enumerable that matches the predicate. If there are no items in the enumerable, then null is returned
InvalidOperationException if there is not exactly one or zero item in the enumerable that matches the predicate
Skips the number of items specified. If the count is larger than the size of the enumerable, no items will be returned.
the number of items to skip
Splits a enumerable into two queryables. One set is for true predicates, the other set is for false predicates.
Sums the items in the enumerable using the selector
selector to return the number to be summed
Takes the number of specified items from the enumerable. If the count is larger than the size of the enumerable, all items will be returned
the number of items to take.
Returns the items as an array
Returns a dictionary based on the key and value selctors
Returns the items as a List
Filters the enumerable by the predicate
the filter for each item.
Generated using TypeDoc
Gets a value indicating whether the ICollection is read-only.