Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator Command<TResult>(BsonDocument)

Performs an implicit conversion from BsonDocument to Command<TResult>.

public static implicit operator Command<TResult>(BsonDocument document)

Parameters

document BsonDocument

The 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 string

The JSON string.

Returns

Command<TResult>

The result of the conversion.