Forums - C# Corner

Forum guidelines
Aniket Samanta

Aniket Samanta

  • 719
  • 44
  • 1.2k

Insert Specific Datatype value in HashTable

Jan 7 2014 8:09 AM
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)

C# Corner Hyderabad Developer Conference

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.