Home » C# Programming » Collection Classes

A HashTable t maintains a collection of names of states and capital city of each state. Which of the following is the correct way to find out whether "Kerala" state is present in this collection or not?

Correct Answer: t.ContainsKey("Kerala");

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion