Method BitwiseAnd
BitwiseAnd(Expression<Func<TDocument, int>>, int)
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
public UpdateBuilder<TDocument> BitwiseAnd(Expression<Func<TDocument, int>> memberExpression, int value)
Parameters
memberExpression
Expression<Func<TDocument, int>>The member expression.
value
intThe value to be and-ed with the current value.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).
BitwiseAnd(Expression<Func<TDocument, long>>, long)
Sets the named element to the bitwise and of its value with another value (see $bit with "and").
public UpdateBuilder<TDocument> BitwiseAnd(Expression<Func<TDocument, long>> memberExpression, long value)
Parameters
memberExpression
Expression<Func<TDocument, long>>The member expression.
value
longThe value to be and-ed with the current value.
Returns
- UpdateBuilder<TDocument>
The builder (so method calls can be chained).