pack.Data.Values contains several dictionary objects.
It is passed into a method for further processing. In the method there is some linq code that returns a list of endPointIds:
dp.Select(d => d.EndpointId)
Stuff is done with that list of endPoints.
I need to add an extra condition to that linq code to only get those where the doProcess flag is set to true.
doProcess is a nullable bool
dp.Select(d => d.EndpointId && d.doProcess.HasValue) and also tried dp.Select(d => d.EndpointId && (d.doProcess ?? true))
Either results in the error message from the title.
How to correct this?
TIA