您好我有未来型的两点字典:获得两个库的公共密钥和共同的价值观
SortedDictionary<string, ClusterPatternCommonMetadata> PatternMetaData { get; set; }
的ClusterPatternCommonMetadata物体看起来像:
int ChunkQuantity { get; set; }
SortedDictionary<int, int> ChunkOccurrences { get; set; }
首先我需要找到的按键方式PatternMetaData存在于两个字典中。我觉得是这样的:为了做这样的操作
List<string> commonKeysString=
vector.PatternMetaData.Keys.Intersect(currentFindingVector.PatternMetaData.Keys)
然后我需要找到创立键的共同价值观......
是否有快速的方法(拉姆达,LINQ等等)
谢谢
您是否在寻找匹配键或匹配键/值?相关问题:http://stackoverflow.com/questions/3804367/testing-for-equality-between-dictionaries-in-c-sharp – deepee1