Click or drag to resize
SafeDictionary<TKey, TValue> Methods

The SafeDictionary< TKey, 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 Hashtable.Add(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 Hashtable.Clear().)
Public methodClone
Clones the dictionary
(Overrides Hashtable.Clone().)
Public methodCloneForNewThread
Clones the object for new thread
Public methodContains
Returns true if the dictionary contains the given key
(Overrides Hashtable.Contains(Object).)
Public methodContainsKey
Returns true if the dictionary contains the given key
(Overrides Hashtable.ContainsKey(Object).)
Public methodContainsValue
Returns true if the dictionary contains the given value
(Overrides Hashtable.ContainsValue(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 Hashtable.CopyTo(Array, Int32).)
Protected methodGetInternalValue
Gets the value from the internal dictionary
Public methodGetObjectData
Object serialization.
(Overrides Hashtable.GetObjectData(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 Hashtable.Remove(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