The SafeDictionary TKey, TValue type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
SafeDictionary TKey, TValue |
SafeDictionary constructor.
| |
SafeDictionary TKey, TValue (IEqualityComparer) |
SafeDictionary constructor.
| |
SafeDictionary TKey, TValue (IDictionary, IEqualityComparer) |
Constructor.
| |
SafeDictionary TKey, TValue (SerializationInfo, StreamingContext) |
De-serialization constructor.
|
Methods
Name | Description | |
---|---|---|
Add |
Adds the value to the dictionary
(Overrides Hashtable Add(Object, Object).) | |
AddMultiple |
Adds multiple items with same value to the dictionary
| |
Clear | Removes all elements from the Hashtable. (Inherited from Hashtable.) | |
Clone | Creates a shallow copy of the Hashtable. (Inherited from Hashtable.) | |
CloneForNewThread |
Clones the object for new thread
| |
Contains |
Returns true if the dictionary contains the given key
(Overrides Hashtable Contains(Object).) | |
ContainsKey |
Returns true if the dictionary contains the given key
(Overrides Hashtable ContainsKey(Object).) | |
ContainsValue |
Returns true if the dictionary contains the given value
(Overrides Hashtable ContainsValue(Object).) | |
CopyTo | (Inherited from Hashtable.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an IDictionaryEnumerator that iterates through the Hashtable. (Inherited from Hashtable.) | |
GetHash | Returns the hash code for the specified key. (Inherited from Hashtable.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetInternalValue |
Gets the value from the internal dictionary
| |
GetObjectData |
Object serialization.
(Overrides Hashtable GetObjectData(SerializationInfo, StreamingContext).) | |
GetRealCount |
Gets the real count of the objects in the dictionary
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
KeyEquals | (Inherited from Hashtable.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDeserialization | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from Hashtable.) | |
Remove | Removes the element with the specified key from the Hashtable. (Inherited from Hashtable.) | |
SetInternalValue |
Sets the value in the internal dictionary
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Tries to get the value, returns true if the retrieval was successful.
|
Extension Methods
Name | Description | |
---|---|---|
AsIndexable TKey, TValue |
Implicit conversion to indexable type with a specific values
(Defined by DataExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
mDefaultValue |
Default value.
| |
mNullValue |
Null value.
| |
mUseWeakReferences |
If true, the weak references are used for the items so the memory can be cleared upon request
|
Properties
Name | Description | |
---|---|---|
AllowNulls |
If true, the dictionary allows null values as valid.
| |
comparer | Obsolete. (Inherited from Hashtable.) | |
CopyToNewThread |
If true, the dictionary is copied (not cloned) to a new thread
| |
Count | Gets the number of key/value pairs contained in the Hashtable. (Inherited from Hashtable.) | |
EqualityComparer | Gets the IEqualityComparer to use for the Hashtable. (Inherited from Hashtable.) | |
hcp | Obsolete. Gets or sets the object that can dispense hash codes. (Inherited from Hashtable.) | |
IsEmpty |
Returns true if the dictionary is empty
| |
IsFixedSize | Gets a value indicating whether the Hashtable has a fixed size. (Inherited from Hashtable.) | |
IsReadOnly | Gets a value indicating whether the Hashtable is read-only. (Inherited from Hashtable.) | |
IsSynchronized | Gets a value indicating whether access to the Hashtable is synchronized (thread safe). (Inherited from Hashtable.) | |
Item Object | Gets or sets the value associated with the specified key. (Inherited from Hashtable.) | |
Item TKey |
Items indexer. Gets or sets the value in the dictionary.
| |
Keys | Gets an ICollection containing the keys in the Hashtable. (Inherited from Hashtable.) | |
NullValue |
Null value.
| |
SyncRoot | Gets an object that can be used to synchronize access to the Hashtable. (Inherited from Hashtable.) | |
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
| |
Values | Gets an ICollection containing the values in the Hashtable. (Inherited from Hashtable.) |
See Also