Operator implicit operator
implicit operator SearchDefinition<TDocument>(BsonDocument)
Performs an implicit conversion from a BSON document to a SearchDefinition<TDocument>.
public static implicit operator SearchDefinition<TDocument>(BsonDocument document)
Parameters
document
BsonDocumentThe BSON document specifying the search definition.
Returns
- SearchDefinition<TDocument>
The result of the conversion.
implicit operator SearchDefinition<TDocument>(string)
Performs an implicit conversion from a string to a SearchDefinition<TDocument>.
public static implicit operator SearchDefinition<TDocument>(string json)
Parameters
json
stringThe string specifying the search definition in JSON.
Returns
- SearchDefinition<TDocument>
The result of the conversion.