Click or drag to resize

RankedDictionaryTKey, TValue Methods

The RankedDictionaryTKey, TValue generic type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAdd
Adds an element with the supplied key and value.
Public methodClear
Removes all elements from the dictionary.
Public methodCode exampleContainsKey
Determines whether the dictionary contains the supplied key.
Public methodContainsValue
Determines whether the dictionary contains the supplied value.
Public methodCopyTo
Copies the dictionary to a compatible array, starting at the supplied position.
Public methodElementAt
Gets the key/value pair at the supplied index.
Public methodElementAtOrDefault
Gets the key/value pair at the supplied index or the default if the index is out of range.
Public methodCode exampleElementsBetween
Returns an enumerator that iterates over a range with the supplied bounds.
Public methodElementsBetweenIndexes
Returns an enumerator that iterates over a range with the supplied index bounds.
Public methodElementsFrom
Returns an enumerator that iterates over a range with the supplied lower bound.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFirst
Gets the element with the minimum key in the dictionary per the comparer.
Public methodGetEnumerator
Gets an enumerator that iterates thru the dictionary.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetObjectData
Returns the data needed to serialize the dictionary.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOfKey
Gets the index of the element with the supplied key.
Public methodIndexOfValue
Gets the index of the first element with the supplied value.
Public methodLast
Gets the element with the maximum key in the dictionary per the comparer.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDeserialization
Implements the deserialization callback and raises the deserialization event when completed.
Public methodRemove
Removes an element with the supplied key from the dictionary.
Public methodRemoveAll
Removes all elements with keys in the supplied collection from the dictionary.
Public methodRemoveAt
Removes an element at the supplied index from the dictionary.
Public methodRemoveRange
Removes an index range of elements from the dictionary.
Public methodRemoveWhere
Removes all elements from the dictionary that match the condition defined by the supplied key-parameterized predicate.
Public methodRemoveWhereElement
Removes all elements from the dictionary that match the condition defined by the supplied key/value-parameterized predicate.
Public methodReverse
Returns an enumerator that iterates thru the dictionary in reverse order.
Public methodCode exampleSkip
Bypasses a supplied number of elements and yields the remaining elements.
Public methodSkipWhile(FuncKeyValuePairTKey, TValue, Boolean)
Bypasses elements as long as a supplied condition is true and yields the remaining elements.
Public methodSkipWhile(FuncKeyValuePairTKey, TValue, Int32, Boolean)
Bypasses elements as long as a supplied index-based condition is true and yields the remaining elements.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetGreaterThan
Gets the element with the least key greater than the supplied key.
Public methodTryGetGreaterThanOrEqual
Gets the element with the least key greater than or equal to the supplied key.
Public methodTryGetLessThan
Gets the element with the greatest key less than the supplied key.
Public methodTryGetLessThanOrEqual
Gets the element with the greatest key less than or equal to the supplied key.
Public methodCode exampleTryGetValue
Gets the value associated with the supplied key.
Public methodTryGetValueAndIndex
Gets the value and index associated with the supplied key.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueAdd
Adds an element with the supplied key/value pair.
Explicit interface implementationPrivate methodIDictionaryAdd
Adds the supplied key and value to the dictionary.
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueContains
Determines if the collection contains the supplied key/value pair.
Explicit interface implementationPrivate methodIDictionaryContains
Determines whether the dictionary contains an element with the supplied key.
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the collection to an array, starting at the supplied array index.
Explicit interface implementationPrivate methodIEnumerableKeyValuePairTKey, TValueGetEnumerator
Gets an enumerator that iterates thru the dictionary.
Explicit interface implementationPrivate methodIDictionaryGetEnumerator
Gets an enumerator that iterates thru the collection.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Gets an enumerator that iterates thru the collection.
Explicit interface implementationPrivate methodISerializableGetObjectData
Returns the data needed to serialize the dictionary.
Explicit interface implementationPrivate methodIDeserializationCallbackOnDeserialization
Implements the deserialization callback and raises the deserialization event when completed.
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueRemove
Removes an element with the supplied key and value from the collection.
Explicit interface implementationPrivate methodIDictionaryRemove
Removes an element with the supplied key from the dictionary.
Top
See Also