HashDictionary Methods |
The HashDictionary type exposes the following members.
| Name | Description | |
|---|---|---|
| Add |
Adds an element with the provided key and value to the
IDictionary object.
(Overrides HashtableAdd(Object, Object).) | |
| AssertIsVariableSize |
Throw an exception if this dictionary is fixed size.
| |
| AssertIsWriteable |
Throw an exception if this dictionary is read-only.
| |
| Clear |
Removes all elements from the
IDictionary object.
(Overrides HashtableClear.) | |
| Clone |
Creates a new object that is a copy of the current instance.
(Overrides HashtableClone.) | |
| Contains |
Determines whether this dictionary contains an entry with the
specified key.
(Overrides HashtableContains(Object).) | |
| ContainsKey |
Determines whether the HashDictionary contains
a specific key.
(Overrides HashtableContainsKey(Object).) | |
| ContainsValue |
Determines whether the HashDictionary contains
a specific value.
(Overrides HashtableContainsValue(Object).) | |
| CopyTo |
Copies the elements of the collection to an array, starting at
a particular array index.
(Overrides HashtableCopyTo(Array, Int32).) | |
| Equals(IDictionary) |
Compares this dictionary with another dictionary for equality.
| |
| Equals(Object) |
Determines whether the specified object is equal to this object.
(Overrides ObjectEquals(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
object for this dictionary.
(Overrides HashtableGetEnumerator.) | |
| GetHash | Returns the hash code for the specified key. (Inherited from Hashtable.) | |
| GetHashCode |
Returns a hash code for this object.
(Overrides ObjectGetHashCode.) | |
| GetObjectData |
Overrides serialization method to add support for null value
serialization.
(Overrides HashtableGetObjectData(SerializationInfo, StreamingContext).) | |
| 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
IDictionary object.
(Overrides HashtableRemove(Object).) | |
| ToString |
Returns string representation of this instance.
(Overrides ObjectToString.) |