Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver.Search
Assembly
MongoDB.Driver.dll

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 BsonDocument

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

The string specifying the search definition in JSON.

Returns

SearchDefinition<TDocument>

The result of the conversion.