Answer the question
In order to leave comments, you need to log in
How to find identical occurrences in a dictionary?
Change has a dictionary IDictionary> productDictionary The ProductModel has a string array string[] codes. How to find in the dictionary all ProductModels that have the same values in the codes array?
Those. one entity has codes = { '123', 1234'}, and the other has codes = { '12353453', 1234'}. These are the ones I need to find. They have matches on the value '1234'
Answer the question
In order to leave comments, you need to log in
If through LINQ it seems like thisarr1.Where(d => arr2.Contains(d));
There are two sets.
IEnumerable.Except - find the difference.
IEnumerable.Intersect - find the intersection.
https://msdn.microsoft.com/en-us/library/9eehta0(...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question