Export (0) Print
Expand All

List Members

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

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

  Name Description
Public method Supported by the .NET Compact Framework List Overloaded. Initializes a new instance of the List class.
Top

  Name Description
Public property Supported by the .NET Compact Framework Capacity Gets or sets the total number of elements the internal data structure can hold without resizing.
Public property Supported by the .NET Compact Framework Count Gets the number of elements actually contained in the List.
Public property Supported by the .NET Compact Framework Item Gets or sets the element at the specified index.
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Add Adds an object to the end of the List.
Public method Supported by the .NET Compact Framework AddRange Adds the elements of the specified collection to the end of the List.
Public method Supported by the .NET Compact Framework AsReadOnly Returns a read-only IList wrapper for the current collection.
Public method Supported by the .NET Compact Framework BinarySearch Overloaded. Uses a binary search algorithm to locate a specific element in the sorted List or a portion of it.
Public method Supported by the .NET Compact Framework Clear Removes all elements from the List.
Public method Supported by the .NET Compact Framework Contains Determines whether an element is in the List.
Public method Supported by the .NET Compact Framework ConvertAll Converts the elements in the current List to another type, and returns a list containing the converted elements.
Public method Supported by the .NET Compact Framework CopyTo Overloaded. Copies the List or a portion of it to an array.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework Exists Determines whether the List contains elements that match the conditions defined by the specified predicate.
Public method Supported by the .NET Compact Framework Find Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List.
Public method Supported by the .NET Compact Framework FindAll Retrieves all the elements that match the conditions defined by the specified predicate.
Public method Supported by the .NET Compact Framework FindIndex Overloaded. 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 or a portion of it.
Public method Supported by the .NET Compact Framework FindLast Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire List.
Public method Supported by the .NET Compact Framework FindLastIndex Overloaded. 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 or a portion of it.
Public method Supported by the .NET Compact Framework ForEach Performs the specified action on each element of the List.
Public method Supported by the .NET Compact Framework GetEnumerator Returns an enumerator that iterates through the List.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Supported by the .NET Compact Framework GetRange Creates a shallow copy of a range of elements in the source List.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Supported by the .NET Compact Framework IndexOf Overloaded. Returns the zero-based index of the first occurrence of a value in the List or in a portion of it.
Public method Supported by the .NET Compact Framework Insert Inserts an element into the List at the specified index.
Public method Supported by the .NET Compact Framework InsertRange Inserts the elements of a collection into the List at the specified index.
Public method Supported by the .NET Compact Framework LastIndexOf Overloaded. Returns the zero-based index of the last occurrence of a value in the List or in a portion of it.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Remove Removes the first occurrence of a specific object from the List.
Public method Supported by the .NET Compact Framework RemoveAll Removes the all the elements that match the conditions defined by the specified predicate.
Public method Supported by the .NET Compact Framework RemoveAt Removes the element at the specified index of the List.
Public method Supported by the .NET Compact Framework RemoveRange Removes a range of elements from the List.
Public method Supported by the .NET Compact Framework Reverse Overloaded. Reverses the order of the elements in the List or a portion of it.
Public method Supported by the .NET Compact Framework Sort Overloaded. Sorts the elements in the List or a portion of it.
Public method Supported by the .NET Compact Framework ToArray Copies the elements of the List to a new array.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Supported by the .NET Compact Framework TrimExcess Sets the capacity to the actual number of elements in the List, if that number is less than a threshold value.
Public method Supported by the .NET Compact Framework TrueForAll Determines whether every element in the List matches the conditions defined by the specified predicate.
Top

  Name Description
Protected method Supported by the .NET Compact Framework 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)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.IEnumerable<T>.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.ICollection.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Add Adds an item to the IList.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Contains Determines whether the IList contains a specific value.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.IndexOf Determines the index of a specific item in the IList.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Insert Inserts an item to the IList at the specified index.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Remove Removes the first occurrence of a specific object from the IList.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.Generic.ICollection<T>.IsReadOnly Gets a value indicating whether the ICollection is read-only.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to the ICollection.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.IsFixedSize Gets a value indicating whether the IList has a fixed size.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.IsReadOnly Gets a value indicating whether the IList is read-only.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.Item Gets or sets the element at the specified index.
Top

Community Additions

ADD
Show:
© 2014 Microsoft