Click or drag to resize
SafeDictionaryTKey, TValue Methods

The SafeDictionaryTKey, TValue generic type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAdd
Adds the value to the dictionary if it does not exist. Updates existing, if it does exist.
(Overrides HashtableAdd(Object, Object).)
Public methodCode exampleAddMultiple
Adds multiple items with same value to the dictionary
Public methodClear
Removes all elements from the System.Collections.Hashtable.
(Overrides HashtableClear.)
Public methodClone
Clones the dictionary
(Overrides HashtableClone.)
Public methodCloneForNewThread
Clones the object for new thread
Public methodContains
Returns true if the dictionary contains the given key
(Overrides HashtableContains(Object).)
Public methodContainsKey
Returns true if the dictionary contains the given key
(Overrides HashtableContainsKey(Object).)
Public methodContainsValue
Returns true if the dictionary contains the given value
(Overrides HashtableContainsValue(Object).)
Protected methodCopyPropertiesTo
Copies the dictionary properties to the target dictionary
Public methodCode exampleCopyTo
Copies the System.Collections.Hashtable elements to a one-dimensional System.Array instance at the specified index.
(Overrides HashtableCopyTo(Array, Int32).)
Protected methodGetInternalValue
Gets the value from the internal dictionary
Public methodGetObjectData
Object serialization.
(Overrides HashtableGetObjectData(SerializationInfo, StreamingContext).)
Public methodCode exampleGetRealCount
Gets the real count of the objects in the dictionary.
Public methodRemove
Removes the element with the specified key from the System.Collections.Hashtable.
(Overrides HashtableRemove(Object).)
Protected methodSetInternalValue
Sets the value in the internal dictionary
Public methodTryGetValue
Tries to get the value, returns true if the retrieval was successful.
Top
Extension Methods
See Also