I have an IGrouping structure
IGrouping<TierRequest,PingtreeNode>
PingtreeNode contains a property of Response which in turn has a property Result.
public class PingtreeNode
{
public ResponseAdapter Response { get; set;}
// ... more properties
}
public class ResponseAdapter
{
public int Result { get; set; }
// ... more properties
}
What I want to do is check whether PingtreeNode contains any nodes with a Result == 2. I know the answer includes a SelectMany but I'm struggling to get the correct syntax.
Anyone help?