Class MultiKeyDictionary<ValueType>
Hashtable which can use multiple keys to access the same data. The keys are separated by the separator.
[Obsolete("Class was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(28, 1)]
public class MultiKeyDictionary<ValueType> : StringSafeDictionary<ValueType>, ICloneThreadItem, IGeneralIndexable<string, ValueType>, IGeneralIndexable
Type Parameters
ValueType
- Inheritance
-
objectHashtableSafeDictionary<string, ValueType>StringSafeDictionary<ValueType>MultiKeyDictionary<ValueType>
- Implements
-
IGeneralIndexable<string, ValueType>
- Inherited Members
- Extension Methods
Remarks
This API supports the framework infrastructure and is not intended to be used directly from your code.
Constructors
MultiKeyDictionary()
Default constructor.
public MultiKeyDictionary()
MultiKeyDictionary(IDictionary)
Constructor.
public MultiKeyDictionary(IDictionary d)
Parameters
d
IDictionarySource data dictionary
Properties
this[object]
Gets or sets the value associated with key value
public override object this[object key] { get; set; }
Parameters
key
objectKey value
Property Value
- object
this[string]
Gets or sets the item.
public override ValueType this[string key] { get; set; }
Parameters
key
stringKey
Property Value
- ValueType
Methods
Add(object, object)
Adds the value to the table.
public override void Add(object key, object value)
Parameters
key
objectKey
value
objectValue
Clear()
Clears the table.
public override void Clear()
Clone()
Gets the cloned Hashtable.
public override object Clone()
Returns
- object
Contains(object)
Returns true if the table contains specific key.
public override bool Contains(object key)
Parameters
key
objectKey to find
Returns
- bool
ContainsKey(object)
Returns true if the table contains specific key.
public override bool ContainsKey(object key)
Parameters
key
objectKey to find
Returns
- bool
GetMainKey(string)
Gets the main object key for the given key.
protected string GetMainKey(string key)
Parameters
key
stringKey to find
Returns
- string
Remove(object)
Removes the item from the table.
public override void Remove(object key)
Parameters
key
objectKey