Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator FilterDefinition<TDocument>(BsonDocument)

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

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

Parameters

document BsonDocument

The document.

Returns

FilterDefinition<TDocument>

The result of the conversion.

implicit operator FilterDefinition<TDocument>(Expression<Func<TDocument, bool>>)

Performs an implicit conversion from a predicate expression to FilterDefinition<TDocument>.

public static implicit operator FilterDefinition<TDocument>(Expression<Func<TDocument, bool>> predicate)

Parameters

predicate Expression<Func<TDocument, bool>>

The predicate.

Returns

FilterDefinition<TDocument>

The result of the conversion.

implicit operator FilterDefinition<TDocument>(string)

Performs an implicit conversion from string to FilterDefinition<TDocument>.

public static implicit operator FilterDefinition<TDocument>(string json)

Parameters

json string

The JSON string.

Returns

FilterDefinition<TDocument>

The result of the conversion.