Export (0) Print
Expand All

SortedList Methods

The SortedList type exposes the following members.

  NameDescription
Public method Add Adds an element with the specified key and value to a SortedList object.
Public method Clear Removes all elements from a SortedList object.
Public method Clone Creates a shallow copy of a SortedList object.
Public method Contains Determines whether a SortedList object contains a specific key.
Public method ContainsKey Determines whether a SortedList object contains a specific key.
Public method ContainsValue Determines whether a SortedList object contains a specific value.
Public method CopyTo Copies SortedList elements to a one-dimensional Array object, starting at the specified index in the array.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetByIndex Gets the value at the specified index of a SortedList object.
Public method GetEnumerator Returns an IDictionaryEnumerator object that iterates through a SortedList object.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetKey Gets the key at the specified index of a SortedList object.
Public method GetKeyList Gets the keys in a SortedList object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValueList Gets the values in a SortedList object.
Public method IndexOfKey Returns the zero-based index of the specified key in a SortedList object.
Public method IndexOfValue Returns the zero-based index of the first occurrence of the specified value in a SortedList object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the element with the specified key from a SortedList object.
Public method RemoveAt Removes the element at the specified index of a SortedList object.
Public method SetByIndex Replaces the value at a specific index in a SortedList object.
Public method Static member Synchronized Returns a synchronized (thread-safe) wrapper for a SortedList object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TrimToSize Sets the capacity to the actual number of elements in a SortedList object.
Top

  NameDescription
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an IEnumerator that iterates through the SortedList.
Top

Community Additions

ADD
Show:
© 2014 Microsoft