I have two different dictionaries:
Dictionary<int, User> X;
Dictionary<int, User> Y;
I want to get a list of the same keys from them using LINQ.
var sameKeys = X.Keys.Intersect(Y.Keys).ToList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With