Method WithinRectangle
WithinRectangle<TMember>(Expression<Func<TDocument, TMember>>, double, double, double, double)
Tests that the value of the named element is within a rectangle (see $within and $box).
public static IMongoQuery WithinRectangle<TMember>(Expression<Func<TDocument, TMember>> memberExpression, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)
Parameters
memberExpression
Expression<Func<TDocument, TMember>>The member expression representing the element to test.
lowerLeftX
doubleThe x coordinate of the lower left corner.
lowerLeftY
doubleThe y coordinate of the lower left corner.
upperRightX
doubleThe x coordinate of the upper right corner.
upperRightY
doubleThe y coordinate of the upper right corner.
Returns
- IMongoQuery
An IMongoQuery.
Type Parameters
TMember
The member type.