I am using a WPF application with MVVM model. I want to know how to compare
two IEnumerable collection values. I am having two IEnumerable values , named as
AvailablePacks and RecommendedPacks. These two collection have different set of values but they are having common property PackID value. And AvailablePacks having a another property named as Quantity.
Now i want to compare these two IEnumerable collection values based upon PackID value, When the both collection having the same PackID I need to assign that Quantity(Inside of AvailablePacks) value to some variable called PackQuantity Which is declared outside .
I am new to LINQ So i am not able to do this properly.
So How Can i achieve this? Can any one tell me a solution of this?
Thanks.
1 Answer