Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
List(T) Class
 List(T) Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
List<(Of <(T>)>) Members

Updated: November 2007

Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.

The List<(Of <(T>)>) type exposes the following members.

  NameDescription
List<(Of <(T>)>)Overloaded. Initializes a new instance of the List<(Of <(T>)>) class.
Top
  NameDescription
Add Adds an object to the end of the List<(Of <(T>)>).
AddRange Adds the elements of the specified collection to the end of the List<(Of <(T>)>).
AsReadOnly Returns a read-only IList<(Of <(T>)>) wrapper for the current collection.
BinarySearchOverloaded. Uses a binary search algorithm to locate a specific element in the sorted List<(Of <(T>)>) or a portion of it.
Clear Removes all elements from the List<(Of <(T>)>).
Contains Determines whether an element is in the List<(Of <(T>)>).
ConvertAll<(Of <(TOutput>)>) Converts the elements in the current List<(Of <(T>)>) to another type, and returns a list containing the converted elements.
CopyToOverloaded. Copies the List<(Of <(T>)>) or a portion of it to an array.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Exists Determines whether the List<(Of <(T>)>) contains elements that match the conditions defined by the specified predicate.
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Find Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List<(Of <(T>)>).
FindAll Retrieves all the elements that match the conditions defined by the specified predicate.
FindIndexOverloaded. Searches for an element that matches the conditions defined by a specified predicate, and returns the zero-based index of the first occurrence within the List<(Of <(T>)>) or a portion of it.
FindLast Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List<(Of <(T>)>).
FindLastIndexOverloaded. Searches for an element that matches the conditions defined by a specified predicate, and returns the zero-based index of the last occurrence within the List<(Of <(T>)>) or a portion of it.
ForEach Performs the specified action on each element of the List<(Of <(T>)>).
GetEnumerator Returns an enumerator that iterates through the List<(Of <(T>)>).
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetRange Creates a shallow copy of a range of elements in the source List<(Of <(T>)>).
GetType Gets the Type of the current instance. (Inherited from Object.)
IndexOfOverloaded. Returns the zero-based index of the first occurrence of a value in the List<(Of <(T>)>) or in a portion of it.
Insert Inserts an element into the List<(Of <(T>)>) at the specified index.
InsertRange Inserts the elements of a collection into the List<(Of <(T>)>) at the specified index.
LastIndexOfOverloaded. Returns the zero-based index of the last occurrence of a value in the List<(Of <(T>)>) or in a portion of it.
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Remove Removes the first occurrence of a specific object from the List<(Of <(T>)>).
RemoveAll Removes the all the elements that match the conditions defined by the specified predicate.
RemoveAt Removes the element at the specified index of the List<(Of <(T>)>).
RemoveRange Removes a range of elements from the List<(Of <(T>)>).
ReverseOverloaded. Reverses the order of the elements in the List<(Of <(T>)>) or a portion of it.
SortOverloaded. Sorts the elements in the List<(Of <(T>)>) or a portion of it.
ToArray Copies the elements of the List<(Of <(T>)>) to a new array.
ToString Returns a String that represents the current Object. (Inherited from Object.)
TrimExcess Sets the capacity to the actual number of elements in the List<(Of <(T>)>), if that number is less than a threshold value.
TrueForAll Determines whether every element in the List<(Of <(T>)>) matches the conditions defined by the specified predicate.
Top
  NameDescription
Aggregate Applies an accumulator function over a sequence. (Defined by Enumerable.)
All Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
AnyOverloaded.
AsEnumerable Returns the input typed as IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
AsQueryableOverloaded.
AverageOverloaded.
Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Concat Concatenates two sequences. (Defined by Enumerable.)
ContainsOverloaded.
CountOverloaded.
DefaultIfEmptyOverloaded.
DistinctOverloaded.
ElementAt Returns the element at a specified index in a sequence. (Defined by Enumerable.)
ElementAtOrDefault Returns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
ExceptOverloaded.
FirstOverloaded.
FirstOrDefaultOverloaded.
IntersectOverloaded.
LastOverloaded.
LastOrDefaultOverloaded.
LongCountOverloaded.
MaxOverloaded.
MinOverloaded.
OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Reverse Inverts the order of the elements in a sequence. (Defined by Enumerable.)
SequenceEqualOverloaded.
SingleOverloaded.
SingleOrDefaultOverloaded.
Skip Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
SkipWhileOverloaded.
SumOverloaded.
Take Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
TakeWhileOverloaded.
ToArray Creates an array from a IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
ToList Creates a List<(Of <(T>)>) from an IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
UnionOverloaded.
WhereOverloaded.
Top
  NameDescription
Capacity Gets or sets the total number of elements the internal data structure can hold without resizing.
Count Gets the number of elements actually contained in the List<(Of <(T>)>).
Item Gets or sets the element at the specified index.
Top
  NameDescription
IList..::.Add Adds an item to the IList.
IList..::.Contains Determines whether the IList contains a specific value.
ICollection..::.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
IEnumerable<(Of <(T>)>)..::.GetEnumerator Returns an enumerator that iterates through a collection.
IEnumerable..::.GetEnumerator Returns an enumerator that iterates through a collection.
IList..::.IndexOf Determines the index of a specific item in the