System.Collections.Generic.SortedList<TKey,TValue> Members

The members of System.Collections.Generic.SortedList<TKey,TValue> are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the SortedList`2 class that is empty, has the default initial capacity, and uses the default IComparer`1.

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Initializes a new instance of the SortedList`2 class that is empty, has the specified initial capacity, and uses the default IComparer`1.

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Public Properties

Capacityint.

Gets or sets the number of elements that the SortedList`2 can contain.

[read-only]
ComparerIComparer<TKey>.

Gets the IComparer`1 for the sorted list.

[read-only]
Countint.

Gets the number of key/value pairs contained in the SortedList`2.

default property
Item(TKey)TValue. Documentation for this section has not yet been entered.
[read-only]
KeysIList<TKey>.

Gets a collection containing the keys in the SortedList`2, in sorted order.

[read-only]
ValuesIList<TValue>.

Gets a collection containing the values in the SortedList`2.

Public Methods

Add(TKey, TValue)
Documentation for this section has not yet been entered.
Clear()

Removes all elements from the SortedList`2.

ContainsKey(TKey) : bool
Documentation for this section has not yet been entered.
ContainsValue(TValue) : bool
Documentation for this section has not yet been entered.
GetEnumerator() : IEnumerator<KeyValuePair<TKey, TValue>>

Returns an enumerator that iterates through the SortedList`2.

IndexOfKey(TKey) : int
Documentation for this section has not yet been entered.
IndexOfValue(TValue) : int
Documentation for this section has not yet been entered.
Remove(TKey) : bool
Documentation for this section has not yet been entered.
RemoveAt(int)

Removes the element at the specified index of the SortedList`2.

TrimExcess()

Sets the capacity to the actual number of elements in the SortedList`2, if that number is less than 90 percent of current capacity.

TryGetValue(TKey, out TValue) : bool
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

ICollection<KeyValuePair<TKey, TValue>>.AddDocumentation for this section has not yet been entered.
IDictionary.Add

Adds an element with the provided key and value to the IDictionary.

ICollection<KeyValuePair<TKey, TValue>>.ClearDocumentation for this section has not yet been entered.
ICollection<KeyValuePair<TKey, TValue>>.ContainsDocumentation for this section has not yet been entered.
IDictionary.Contains

Determines whether the IDictionary contains an element with the specified key.

ICollection.CopyTo

Copies the elements of the ICollection to an Array, starting at a particular Array index.

ICollection<KeyValuePair<TKey, TValue>>.CopyToDocumentation for this section has not yet been entered.
IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumeratorDocumentation for this section has not yet been entered.
IDictionary.GetEnumerator

Returns an IDictionaryEnumerator for the IDictionary.

IEnumerable.GetEnumerator

Returns an enumerator that iterates through a collection.

[read-only]
IDictionary.IsFixedSizebool.

Gets a value indicating whether the IDictionary has a fixed size.

[read-only]
ICollection<KeyValuePair<TKey, TValue>>.IsReadOnlybool. Documentation for this section has not yet been entered.
[read-only]
IDictionary.IsReadOnlybool.

Gets a value indicating whether the IDictionary is read-only.

[read-only]
ICollection.IsSynchronizedbool.

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

IDictionary.Itemobject. Documentation for this section has not yet been entered.
[read-only]
IDictionary<TKey, TValue>.KeysICollection<TKey>. Documentation for this section has not yet been entered.
[read-only]
IDictionary.KeysICollection.

Gets an ICollection containing the keys of the IDictionary.

ICollection<KeyValuePair<TKey, TValue>>.RemoveDocumentation for this section has not yet been entered.
IDictionary.Remove

Removes the element with the specified key from the IDictionary.

[read-only]
ICollection.SyncRootobject.

Gets an object that can be used to synchronize access to the ICollection.

[read-only]
IDictionary<TKey, TValue>.ValuesICollection<TValue>. Documentation for this section has not yet been entered.
[read-only]
IDictionary.ValuesICollection.

Gets an ICollection containing the values in the IDictionary.