Key/
Value/Index type definition for. net
System. Collections. arraylist
System. Collections. hashtable is used to represent a groupKey/ValueStructure container, which may be called map or dictionary by other languages.KeyIt is used for quick search. Therefore, it may be more appropriate to call it a dictionary.
Hashtable does not have many methods and attributes. Most of them can also be regarded as justice, but hashtable provides the hashtable [akey] method to reference its contained objects, but there is no index pointing to the number.
System. Collections. Specialized. namevaluecollection is a class that can be accessed using index. What is unpleasant is that itKey/ValueMust be of the string data type.
Remember that system. Collections. Specialized. listdictionary is a one-way linked list structure.Key/ValueIf there are not many, it is more efficient than hashtable.
System. Collections. Specialized. stringdictionaryKeyIs a case-sensitive string data type.
Take a look at the following namespace .....
System. Collections
System. Collections. Specialized.