I have two dictionaries, namely
Dictionary DictA=new Dictionary(); Dictionary DictB=new Dictiona
Very simple:
var query = DictA .Where(a => DictB.ContainsKey(a.Key)) .ToDictionary(a => DictB[a.Key], a => a.Value);
I get this result: