Click or drag to resize

PersistentDictionaryTKey, TValue Methods

The PersistentDictionaryTKey, TValue generic type exposes the following members.

Methods
  NameDescription
Public methodAdd(TKey, TValue)
Adds a specified key/value pair to the dictionary. If a value with the specified key already exists, it is replaced. This method does not modify the dictionary on which it is called but instead returns a new dictionary containing the added element.
Public methodAdd(TKey, TValue, PersistentDictionaryAddResult)
Adds a specified key/value pair to the dictionary, and returns a value indicating whether the key was newly added to the dictionary or it already existed and the value was replaced. This method does not modify the dictionary on which it is called but instead returns a new dictionary containing the added element.
Public methodContainsKey
Determines if a specified key exists in the dictionary.
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 methodGetEnumerator
Gets an enumerator for enumerating over the key/value pairs in the dictionary.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes an item with the specified key from the dictionary. This method does not modify the instance on which it is called but instead returns a new instance with the element removed. If the key does not exist in the dictionary, this method returns the instance on which it is called.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value in the dictionary corresponding to the given key.
Top
See Also