Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator ProjectionDefinition<TSource>(BsonDocument)

Performs an implicit conversion from BsonDocument to ProjectionDefinition<TSource>.

public static implicit operator ProjectionDefinition<TSource>(BsonDocument document)

Parameters

document BsonDocument

The document.

Returns

ProjectionDefinition<TSource>

The result of the conversion.

implicit operator ProjectionDefinition<TSource>(string)

Performs an implicit conversion from string to ProjectionDefinition<TSource, TProjection>.

public static implicit operator ProjectionDefinition<TSource>(string json)

Parameters

json string

The JSON string.

Returns

ProjectionDefinition<TSource>

The result of the conversion.