How to check if a hash set contains a value which is a dictionary

I have a dictionary - Dictionary(Of String, HashSet(Of Dictionary(String, Object))).

How to check whether the HashSet contains some particular value(which is of type Dictionary).

hi @maria.josephina,

Try the use
dictionary.Contains(String).
(or) if it is in key value pair use
dictionary.Keys.Contains(String)

It will return a True/False value.

Regards,
naveen

@Naveen_tg,

I wanted to check like : hashSet.contains(some dictionary key).

Should I iterate through each of the elements in hashSet and then check if it contains the dictionary ? Or Is there any built in function for the same?

@maria.josephina
The dictionary is in form of (Dictionary1(Of String, HashSet(Of Dictionary(String, Object))).

So, Iteraate through Dictionary1 and Then check HashSet contains element or not.

regards,
naveen