Question:

How to check whether hash table contains specific key in C#?

Answer:

Method – “ContainsKey” can be used to check the key in hash table. Below is the sample code for the same –

Eg: myHashtbl.ContainsKey("1");

Keywords:

© 2017 QuizBucket.org