Search
IEnumerable Methods
 


 Public Methods

  Name Description

add

Adds an object to the end of the collection.

addRange

Adds a range of elements to the end of the collection.

clear

Clears the collection.

clone

Creates a copy of the collection.

contains

Checks if the given element is present in the collection.

copyTo

Copies a range of elements from this collection to a destination collection.

count

Gets the number of elements.

first

Returns the first element in the collection.

forEach

Executes a provided function once for each element.

indexOfItem

Gets the index of a given object in a collection.

insert

Adds an element to the collection at the specified index.

item

Gets the element at the given index.

items

Gets the collection as an array.

last

Returns the last element in the collection.

max

Invokes a transform function on each item and returns the maximum value in a sequence of numbers.

min

Invokes a transform function on each item and returns theminimum value in a sequence of numbers.

remove

Removes an element from the collection.

removeAt

Removes the element at the given index.

removeRange

Removes a range of elements starting from the given index.

reverse

Gets the collection as an array in reverse order.

select

Projects each element of a sequence into a new form.

sort

Sorts the underlying array.

sum

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

toArray

Returns a new Object array, containing the contents of the collection.

where

Filters a sequence of values based on a predicate.

 See Also