Operator implicit operator
implicit operator SortDefinition<TDocument>(BsonDocument)
Performs an implicit conversion from BsonDocument to SortDefinition<TDocument>.
public static implicit operator SortDefinition<TDocument>(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Returns
- SortDefinition<TDocument>
The result of the conversion.
implicit operator SortDefinition<TDocument>(string)
Performs an implicit conversion from string to SortDefinition<TDocument>.
public static implicit operator SortDefinition<TDocument>(string json)
Parameters
json
stringThe JSON string.
Returns
- SortDefinition<TDocument>
The result of the conversion.