Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Explain Hashtable in C#?
Home
C Sharp
Explain Hashtable in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Explain Hashtable in C#?
hashtable-in-c#
explain-hashtable
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
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");
Related questions
0
votes
Q: What is Hashtable?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#hashtable
+1
vote
Q: Explain Reflection in C#.
asked
Apr 9, 2020
in
C Sharp
by
GeorgeBell
#c#
#csharp
0
votes
Q: Explain the features of C#?
asked
Feb 18, 2020
in
C Sharp
by
rahuljain1
#c-sharp-features
0
votes
Q: Explain difference between "continue" and "break" statements in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
#c#-continue
0
votes
Q: Explain the methods and properties of Thread class in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
thread-class
0
votes
Q: Explain Attributes in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
explain-attributes
0
votes
Q: Explain Indexers in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
indexers-in-c#
0
votes
Q: Explain Static constructor in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
static-constructor
0
votes
Q: Explain Copy constructor in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
copy-constructor
0
votes
Q: Explain Anonymous type in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
anonymous-type
...