A HashTable t maintains a collection of names of states and capital city of each state. Which among the following finds out whether “New

A HashTable t maintains a collection of names of states and capital city of each state. Which among the following finds out whether “New delhi” state is present in the collection or not?
A.
Code:
 t.HasValue("New delhi");
B.
Code:
t.ContainsKey("New delhi");
C.
Code:
t.HasKey("New delhi");
D.
Code:
t.ContainsValue("New delhi");
 

Tìm kiếm

Back
Top