Collections > Collections Assembly Interfaces > IHashtable
The IHashtable interface is a set of interrelated keys and values based on key hash code.
IHashtable
When an element is added to the IHashtable collection, it is placed to the certain segment depending on the key hash code. The further key search is executed only in the certain segment with using of the key hash code. Thus, it strongly reduces the number of operations of key comparison, which is required to find the element.
Property name | Brief description | |
![]() |
Item | The Item property determines value of glossary element. |
![]() |
Keys | The Keys property returns an object that contains the collection of glossary keys. |
![]() |
Values | The Values property returns the object that contains the collection of the values of the glossary elements. |
Property name | Brief description | |
![]() |
Count | The Count property returns the number of array elements. |
Method name | Brief description | |
![]() |
Clone | The Clone method creates a copy of hash table. |
![]() |
ContainsKey | The ContainsKey method checks if an element by the key exists. |
![]() |
ContainsValue | The ContainsValue method checks if an element by the value exists. |
Method name | Brief description | |
![]() |
Add | The Add method adds an element to glossary. |
![]() |
Clear | The Clear method clears the glossary. |
![]() |
Contains | The Contains method checks if the element with the Key key exists. |
![]() |
Remove | The Remove method removes element with the Key key. |
Method name | Brief description | |
![]() |
CopyTo | The CopyTo method copies the collection into an array. |
See also: