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