I have two dictionaries with a string key and different value types.
private Dictionary<string, IProperty> _properties;
private Dictionary<string, Expectation> _expectations;
I need to compare elements sharing same key and get matching Expectations. Here’s my method signature in Expectation class.
public bool Matches(IProperty property)
How can I do that using LINQ?
1 Answer