Click or drag to resize

DisposableDictionaryTKey, TValue Class

A System.Collections.Generic.Dictionary(Of TKey, TValue) extended with IDisposable implementation that disposes each value object in the dictionary when the dictionary is disposed.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericDictionaryTKey, TValue
    Arsenal.ImageMounter.IODisposableDictionaryTKey, TValue

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
[SerializableAttribute]
public class DisposableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, 
	IDisposable
where TValue : IDisposable

Type Parameters

TKey
TValue

The DisposableDictionaryTKey, TValue type exposes the following members.

Constructors
  NameDescription
Public methodDisposableDictionaryTKey, TValue
Public methodDisposableDictionaryTKey, TValue(IDictionaryTKey, TValue)
Public methodDisposableDictionaryTKey, TValue(IEqualityComparerTKey)
Public methodDisposableDictionaryTKey, TValue(Int32)
Public methodDisposableDictionaryTKey, TValue(IDictionaryTKey, TValue, IEqualityComparerTKey)
Public methodDisposableDictionaryTKey, TValue(Int32, IEqualityComparerTKey)
Protected methodDisposableDictionaryTKey, TValue(SerializationInfo, StreamingContext)
Top
Properties
  NameDescription
Public propertyComparer (Inherited from DictionaryTKey, TValue.)
Public propertyCount (Inherited from DictionaryTKey, TValue.)
Public propertyItem
Gets or sets the value associated with the specified key.
(Inherited from DictionaryTKey, TValue.)
Public propertyKeys (Inherited from DictionaryTKey, TValue.)
Public propertyValues (Inherited from DictionaryTKey, TValue.)
Top
Methods
  NameDescription
Public methodAdd
Adds the specified key and value to the dictionary.
(Inherited from DictionaryTKey, TValue.)
Public methodClear (Inherited from DictionaryTKey, TValue.)
Public methodContainsKey (Inherited from DictionaryTKey, TValue.)
Public methodContainsValue (Inherited from DictionaryTKey, TValue.)
Public methodDispose
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetEnumerator (Inherited from DictionaryTKey, TValue.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData (Overrides DictionaryTKey, TValueGetObjectData(SerializationInfo, StreamingContext).)
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 methodOnDeserialization
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from DictionaryTKey, TValue.)
Public methodRemove (Inherited from DictionaryTKey, TValue.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
(Inherited from DictionaryTKey, TValue.)
Top
Extension Methods
  NameDescription
Public Extension MethodQueueDispose (Defined by ExtensionMethods.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueAdd (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodIDictionaryAdd
Adds the specified key and value to the dictionary.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueContains (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodIDictionaryContains
Determines whether the IDictionary contains an element with the specified key.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueCopyTo (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodICollectionCopyTo (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodIEnumerableKeyValuePairTKey, TValueGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodIDictionaryGetEnumerator (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryIsFixedSize
Gets a value indicating whether the IDictionary has a fixed size.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyICollectionKeyValuePairTKey, TValueIsReadOnly
Gets a value indicating whether the dictionary is read-only.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryIsReadOnly
Gets a value indicating whether the IDictionary is read-only.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryItem
Gets or sets the value with the specified key.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryTKey, TValueKeys (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIReadOnlyDictionaryTKey, TValueKeys (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryKeys
Gets an ICollection containing the keys of the IDictionary.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodICollectionKeyValuePairTKey, TValueRemove
Removes a key and value from the dictionary.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate methodIDictionaryRemove
Removes the element with the specified key from the IDictionary.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryTKey, TValueValues (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIReadOnlyDictionaryTKey, TValueValues (Inherited from DictionaryTKey, TValue.)
Explicit interface implementationPrivate propertyIDictionaryValues
Gets an ICollection containing the values in the IDictionary.
(Inherited from DictionaryTKey, TValue.)
Top
See Also