Lets say I have the following hashtable:
| key | value |
|---|---|
| 1 | a |
| 2 | b |
| 3 | c |
| .. | .. |
| .. | .. |
| 26 | z |
I have a list of char and I have to do a check for each character to see if matches with a Value from the hashtable, if does match, I need to get the correspondent key for
My idea is something like this:
foreach (char c in common_items)
{
foreach (DictionaryEntry de in hashtable)
{
if (!de.Value.Equals(c))
{
Console.WriteLine(de.Key);
}
}
}
I have done research and I could not find anything similar.
Any help is very appreciated. Thanks.