Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator SortDefinition<TDocument>(BsonDocument)

Performs an implicit conversion from BsonDocument to SortDefinition<TDocument>.

public static implicit operator SortDefinition<TDocument>(BsonDocument document)

Parameters

document BsonDocument

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

The JSON string.

Returns

SortDefinition<TDocument>

The result of the conversion.