Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator ProjectionDefinition<TSource, TProjection>(BsonDocument)

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

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

Parameters

document BsonDocument

The document.

Returns

ProjectionDefinition<TSource, TProjection>

The result of the conversion.

implicit operator ProjectionDefinition<TSource, TProjection>(string)

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

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

Parameters

json string

The JSON string.

Returns

ProjectionDefinition<TSource, TProjection>

The result of the conversion.

implicit operator ProjectionDefinition<TSource, TProjection>(ProjectionDefinition<TSource>)

public static implicit operator ProjectionDefinition<TSource, TProjection>(ProjectionDefinition<TSource> projection)

Parameters

projection ProjectionDefinition<TSource>

The projection.

Returns

ProjectionDefinition<TSource, TProjection>

The result of the conversion.