Export (0) Print
Expand All

SortedList Members

SortedList overview

Public Constructors

public constructorSortedList Constructor Overloaded. Initializes a new instance of the SortedList class.

Public Properties

public propertyCapacity Gets or sets the capacity of the SortedList.
public propertyCount Gets the number of elements contained in the SortedList.
public propertyIsFixedSize Gets a value indicating whether the SortedList has a fixed size.
public propertyIsReadOnly Gets a value indicating whether the SortedList is read-only.
public propertyIsSynchronized Gets a value indicating whether access to the SortedList is synchronized (thread-safe).
public propertyItem Gets and sets the value associated with a specific key in the SortedList.

In C#, this property is the indexer for the SortedList class.

public propertyKeys Gets the keys in the SortedList.
public propertySyncRoot Gets an object that can be used to synchronize access to the SortedList.
public propertyValues Gets the values in the SortedList.

Public Methods

public methodAdd Adds an element with the specified key and value to the SortedList.
public methodClear Removes all elements from the SortedList.
public methodClone Creates a shallow copy of the SortedList.
public methodContains Determines whether the SortedList contains a specific key.
public methodContainsKey Determines whether the SortedList contains a specific key.
public methodContainsValue Determines whether the SortedList contains a specific value.
public methodCopyTo Copies the SortedList elements to a one-dimensional Array instance at the specified index.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetByIndex Gets the value at the specified index of the SortedList.
public methodGetEnumerator Returns an IDictionaryEnumerator that can iterate through the SortedList.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetKey Gets the key at the specified index of the SortedList.
public methodGetKeyList Gets the keys in the SortedList.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodGetValueList Gets the values in the SortedList.
public methodIndexOfKey Returns the zero-based index of the specified key in the SortedList.
public methodIndexOfValue Returns the zero-based index of the first occurrence of the specified value in the SortedList.
public methodRemove Removes the element with the specified key from SortedList.
public methodRemoveAt Removes the element at the specified index of SortedList.
public methodSetByIndex Replaces the value at a specific index in the SortedList.
public methodstatic (Shared in Visual Basic)Synchronized Returns a synchronized (thread-safe) wrapper for the SortedList.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodTrimToSize Sets the capacity to the actual number of elements in the SortedList.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Explicit Interface Implementations

IEnumerable.GetEnumerator Returns an IEnumerator that can iterate through the SortedList.

See Also

SortedList Class | System.Collections Namespace

Show:
© 2014 Microsoft