1
Answer

Insert Specific Datatype value in HashTable

Aniket Samanta

Aniket Samanta

11y
1.5k
1
I have a hashtable
Hashtable _hashTable = new Hashtable().
 
In this hashtable i want add only bool value .
 
_hashTable .Add(1, "false");
_hashTable .Add(2, "false");
_hashTable .Add(a, "true");
bcoz i need to assign this value in the below variable. 
bool _isindian = _hashTable[key].
is it possible to assign those _hashTable value in the _isindian variable ? 
Please advice. 

Answers (1)