Operator implicit operator
implicit operator FilterDefinition<TDocument>(BsonDocument)
Performs an implicit conversion from BsonDocument to FilterDefinition<TDocument>.
public static implicit operator FilterDefinition<TDocument>(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Returns
- FilterDefinition<TDocument>
The result of the conversion.
implicit operator FilterDefinition<TDocument>(Expression<Func<TDocument, bool>>)
Performs an implicit conversion from a predicate expression to FilterDefinition<TDocument>.
public static implicit operator FilterDefinition<TDocument>(Expression<Func<TDocument, bool>> predicate)
Parameters
predicate
Expression<Func<TDocument, bool>>The predicate.
Returns
- FilterDefinition<TDocument>
The result of the conversion.
implicit operator FilterDefinition<TDocument>(string)
Performs an implicit conversion from string to FilterDefinition<TDocument>.
public static implicit operator FilterDefinition<TDocument>(string json)
Parameters
json
stringThe JSON string.
Returns
- FilterDefinition<TDocument>
The result of the conversion.