you find a value in a dictionary in C #?
dictionary consists of key-value elements, that is, there are always pair
entries with a key and a value such as <"ABC1000",
are for example a dictionary.
dictionary offers as a simple search only the search for the key key or a
combination of key and value.
you want to search for a value, then you have to search as follows
x.Value.ToString() == suchtext);
the found element is a KeyValuePair, you can not compare it directly to zero. Instead,
you have to compare the internal key to zero.
example for finding a value in the settings as a dictionary and then comparing
if there is a hit below the values.
//-< check exists >-
System.Collections.Generic.KeyValuePair<string, object> find_Item =
x.Value.ToString() == sFolder);
//-</ check exists >-