Operator implicit operator
implicit operator ProjectionDefinition<TSource>(BsonDocument)
Performs an implicit conversion from BsonDocument to ProjectionDefinition<TSource>.
public static implicit operator ProjectionDefinition<TSource>(BsonDocument document)
Parameters
document
BsonDocumentThe 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
stringThe JSON string.
Returns
- ProjectionDefinition<TSource>
The result of the conversion.