I don't like the fact that I am selecting all the points, even though I only care about the count of them.
Which of the
from parts should appear first, if it even matters?
var count = (from type in ValidTypes() from point in GetData(type) where point.Radius > referencePoint.Radius && point.Theta > referencePoint.Theta select point).Count()
ValidTypes() returns a few types, about 5.
GetData(type) may return many points, possibly 100,000.
This query is counting the number of points that have both a larger theta and a larger radius than a given point.
Is there a way to write this faster or more readable?