in C Sharp by
Q:
Explain Hashtable in C#?

1 Answer

0 votes
by
It is used to store the key/value pairs based on hash code of the key. Key will be used to access the element in the collection. For example,

Hashtable myHashtbl = new Hashtable();

myHashtbl.Add("1", "TestValue1");

myHashtbl.Add("2", "TestValue2");
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
+1 vote
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Jun 16, 2020 in C Sharp by Hodge
...