I have a C# dictionary, Dictionary that I need to be filtered based on a property of MyObject.
Dictionary
MyObject
For example, I want to
Since Dictionary implements IEnumerable>, you can just use Where:
IEnumerable>
var matches = dictionary.Where(kvp => !kvp.Value.BooleanProperty);
To recreate a new dictionary if you need it, use the ToDictionary method.