I have two dictionaries with one key and value as tuple (two values). I want to do the following:
- compare both dictionaries on the basis of key. If keys are matched, then their tuple should be compare.
- also if both dictionaries contain different key i.e. unmatched key, it should give an error.
It can be either linq expression or simple loops and check.
Dictionary<string, Tuple<string, string>> dict1= new Dictionary<string, Tuple<string, string>>();
Dictionary<string, Tuple<string, string>> dict2= new Dictionary<string, Tuple<string, string>>();