How do I create a method that takes two Dictionary & returns a Dictionary.
This method must compare the two Dictionary's & return only the ones that does not match.
Any help peeps.......
Remove duplicates from two Dictionary's
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Krivahn Doss8 reputationPosted Oct 1, 2008, 10:36 PM EDT
Removing duplicates based on keys & values.
public Dictionary< int, bool> CompareDictionary(Dictionary< int, bool> newDic, Dictionary
{
Dictionary
if (newDic != null)
{
comparedDic = new Dictionary
foreach (KeyValuePair
{
if (!oldDic.Contains(new KeyValuePair
{
comparedDic.Add(kvp.Key, kvp.Value);
}
}
}
return comparedDic;
}