SafeDictionaryTKey, TValue Properties |
The SafeDictionaryTKey, TValue generic type exposes the following members.
Name | Description | |
---|---|---|
AllowNulls |
If true, the dictionary allows null values as valid.
| |
CopyToNewThread |
If true, the dictionary is copied (not cloned) to a new thread
| |
DefaultValue |
Default value.
| |
IsEmpty |
Returns true if the dictionary is empty
| |
IsSynchronized |
Returns true if dictionary is synchronized.
(Overrides HashtableIsSynchronized.) | |
Item |
Items indexer. Gets or sets the value in the dictionary.
| |
Keys |
Gets an Collection containing the keys in the System.Collections.Hashtable.
(Overrides HashtableKeys.) | |
NullValue |
Null value.
| |
SyncRoot |
Gets an object that can be used to synchronize access to the SafeDictionaryTKey, TValue.
(Overrides HashtableSyncRoot.) | |
TypedKeys |
Gets a typed collection of keys in this dictionary
| |
TypedValues |
Gets a typed collection of values in this dictionary
| |
UseWeakReferences |
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).
| |
Values |
Gets a Collection containing the values in the System.Collections.Hashtable.
(Overrides HashtableValues.) |