My googlefu is failing for this one.
I have a list of an outer class (Board) that contains a (inner) list of another class (Properties).
Properties is essentially a dictionary (the object gets saved to XML, and you can't serialise a dictionary) with two properties, Property and Value, which are used to store various properties of the parent/outer class.
What I'm need to do, is search the inner list for a defined property (Connector), with a specific value (JP1).
I have suitable Linq that returns all the Board's, which have a Property set with the Property of Connector, but I'm struggling with how to check if that Property is set to JP1-
boards = Boards.Where(x => x.Properties.All(p => p.Property == "Connector")).ToList();
Can anybody point me in the correct direction?