Click or drag to resize
SafeDictionaryTKey, TValue Properties

The SafeDictionaryTKey, TValue generic type exposes the following members.

Properties
  NameDescription
Public propertyAllowNulls
If true, the dictionary allows null values as valid.
Public propertyCopyToNewThread
If true, the dictionary is copied (not cloned) to a new thread
Public propertyDefaultValue
Default value.
Public propertyIsEmpty
Returns true if the dictionary is empty
Public propertyIsSynchronized
Returns true if dictionary is synchronized.
(Overrides HashtableIsSynchronized.)
Public propertyItem
Items indexer. Gets or sets the value in the dictionary.
Public propertyKeys
Gets an Collection containing the keys in the System.Collections.Hashtable.
(Overrides HashtableKeys.)
Public propertyNullValue
Null value.
Public propertyCode exampleSyncRoot (Overrides HashtableSyncRoot.)
Public propertyTypedKeys
Gets a typed collection of keys in this dictionary
Public propertyTypedValues
Gets a typed collection of values in this dictionary
Public propertyCode exampleUseWeakReferences
If true, the weak references are used for the items so the memory can be cleared upon request. The property can be set only when the dictionary is empty. To ensure thread-safety, you have to perform the check for emptiness and property assignment in a critical section (use SyncRoot for that purpose).
Public propertyValues
Gets a Collection containing the values in the System.Collections.Hashtable.
(Overrides HashtableValues.)
Top
See Also