Search
List Members
Constructors Methods
 


Represents an array of arbitrary objects.

The following tables list the members exposed by the List type.

 Public Constructors

  Name Description

List

Initializes a new instance of the List class.

 Public Methods

  Name Description

add

Adds an object to the end of the collection. (Inherited from IEnumerable.)

addRange

Adds a range of elements to the end of the collection. (Inherited from IEnumerable.)

clear

Clears the collection. (Inherited from IEnumerable.)

clone

Creates a copy of the collection. (Inherited from IEnumerable.)

contains

Checks if the given element is present in the collection. (Inherited from IEnumerable.)

copyTo

Copies a range of elements from this collection to a destination collection. (Inherited from IEnumerable.)

count

Gets the number of elements. (Inherited from IEnumerable.)

first

Returns the first element in the collection. (Inherited from IEnumerable.)

forEach

Executes a provided function once for each element. (Inherited from IEnumerable.)

indexOfItem

Gets the index of a given object in a collection. (Inherited from IEnumerable.)

insert

Adds an element to the collection at the specified index. (Inherited from IEnumerable.)

item

Gets the element at the given index. (Inherited from IEnumerable.)

items

Gets the collection as an array. (Inherited from IEnumerable.)

last

Returns the last element in the collection. (Inherited from IEnumerable.)

max

Invokes a transform function on each item and returns the maximum value in a sequence of numbers. (Inherited from IEnumerable.)

min

Invokes a transform function on each item and returns theminimum value in a sequence of numbers. (Inherited from IEnumerable.)

remove

Removes an element from the collection. (Inherited from IEnumerable.)

removeAt

Removes the element at the given index. (Inherited from IEnumerable.)

removeRange

Removes a range of elements starting from the given index. (Inherited from IEnumerable.)

reverse

Gets the collection as an array in reverse order. (Inherited from IEnumerable.)

select

Projects each element of a sequence into a new form. (Inherited from IEnumerable.)

sort

Sorts the underlying array. (Inherited from IEnumerable.)

sum

Computes the sum of the sequence of number values that are obtained by invoking a transform function on each element. (Inherited from IEnumerable.)

toArray

Returns a new Object array, containing the contents of the collection. (Inherited from IEnumerable.)

where

Filters a sequence of values based on a predicate. (Inherited from IEnumerable.)

 See Also