Click or drag to resize

RankedMapTKey, TValue Methods

The RankedMapTKey, 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 map.
Public methodCode exampleContainsKey
Determines whether the map contains the supplied key.
Public methodContainsValue
Determines whether the map contains the supplied value.
Public methodCopyTo
Copies the map 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 methodElementsBetween
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 lowest sorted key in the map.
Public methodGetEnumerator
Gets an enumerator that iterates thru the map.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetObjectData
Returns the data needed to serialize the map.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOfKey
Gets the index of the first 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 highest sorted key in the map.
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 methodCode exampleRemove(TKey)
Removes all elements with the supplied key from the map.
Public methodCode exampleRemove(TKey, Int32)
Removes a supplied number of elements with the supplied key from the map.
Public methodRemoveAll
Removes all elements with keys in the supplied collection from the map.
Public methodRemoveAt
Removes an element at the supplied index from the map.
Public methodRemoveRange
Removes an index range of elements from the map.
Public methodRemoveWhere
Removes all elements from the map that match the condition defined by the supplied key-parameterized predicate.
Public methodRemoveWhereElement
Removes all elements from the map that match the condition defined by the supplied key/value-parameterized predicate.
Public methodReverse
Returns an enumerator that iterates thru the map 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 an element with the least key greater than the supplied key.
Public methodTryGetGreaterThanOrEqual
Gets an element with the least key greater than or equal to the supplied key.
Public methodTryGetLessThan
Gets an element with the greatest key less than the supplied key.
Public methodTryGetLessThanOrEqual
Gets an element with the greatest key less than or equal to 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 methodICollectionKeyValuePairTKey, TValueContains
Determines whether the map contains the supplied key/value pair.
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the map to an array, starting at the supplied array index.
Explicit interface implementationPrivate methodIEnumerableKeyValuePairTKey, TValueGetEnumerator
Gets an enumerator that iterates thru the map.
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Gets an enumerator that iterates thru the collection.
Explicit interface implementationPrivate methodISerializableGetObjectData
Returns the data needed to serialize the map.
Explicit interface implementationPrivate methodIDeserializationCallbackOnDeserialization
Implements the deserialization callback and raises the deserialization event when completed.
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueRemove
Deletes all occurrences of the supplied key and its associated value from the collection.
Top
See Also