| SafeDictionaryTKey, TValue Class |
Namespace: CMS.Base
[SerializableAttribute] public class SafeDictionary<TKey, TValue> : Hashtable, ICloneThreadItem, IXmlSerializable, IGeneralIndexable<TKey, TValue>, IGeneralIndexable
The SafeDictionaryTKey, TValue type exposes the following members.
| Name | Description | |
|---|---|---|
| SafeDictionaryTKey, TValue |
SafeDictionary constructor.
| |
| SafeDictionaryTKey, TValue(IEqualityComparer) |
SafeDictionary constructor.
| |
| SafeDictionaryTKey, TValue(IDictionary, IEqualityComparer) |
Constructor.
| |
| SafeDictionaryTKey, TValue(SerializationInfo, StreamingContext) |
De-serialization constructor.
|
| Name | Description | |
|---|---|---|
| Add |
Adds the value to the dictionary
(Overrides HashtableAdd(Object, Object).) | |
| AddMultiple |
Adds multiple items with same value to the dictionary
| |
| Clear |
Removes all elements from the System.Collections.Hashtable.
(Overrides HashtableClear.) | |
| CloneForNewThread |
Clones the object for new thread
| |
| Contains |
Returns true if the dictionary contains the given key
(Overrides HashtableContains(Object).) | |
| ContainsKey |
Returns true if the dictionary contains the given key
(Overrides HashtableContainsKey(Object).) | |
| ContainsValue |
Returns true if the dictionary contains the given value
(Overrides HashtableContainsValue(Object).) | |
| CopyTo |
Copies the System.Collections.Hashtable elements to a one-dimensional System.Array instance at the specified index.
(Overrides HashtableCopyTo(Array, Int32).) | |
| GetInternalValue |
Gets the value from the internal dictionary
| |
| GetObjectData |
Object serialization.
(Overrides HashtableGetObjectData(SerializationInfo, StreamingContext).) | |
| GetRealCount |
Gets the real count of the objects in the dictionary
| |
| Remove |
Removes the element with the specified key from the System.Collections.Hashtable.
(Overrides HashtableRemove(Object).) | |
| SetInternalValue |
Sets the value in the internal dictionary
| |
| TryGetValue |
Tries to get the value, returns true if the retrieval was successful.
|
| Name | Description | |
|---|---|---|
| AsIndexableTKey, TValue |
Implicit conversion to indexable type with a specific values
(Defined by DataExtensions.) | |
| AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
| 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.) |
| 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
|
| 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.
| |
| 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 Collection containing the values in the System.Collections.Hashtable.
(Overrides HashtableValues.) |