Operator implicit operator
implicit operator UpdateDefinition<TDocument>(BsonDocument)
Performs an implicit conversion from BsonDocument to UpdateDefinition<TDocument>.
public static implicit operator UpdateDefinition<TDocument>(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Returns
- UpdateDefinition<TDocument>
The result of the conversion.
implicit operator UpdateDefinition<TDocument>(string)
Performs an implicit conversion from string to UpdateDefinition<TDocument>.
public static implicit operator UpdateDefinition<TDocument>(string json)
Parameters
json
stringThe JSON string.
Returns
- UpdateDefinition<TDocument>
The result of the conversion.
implicit operator UpdateDefinition<TDocument>(PipelineDefinition<TDocument, TDocument>)
Performs an implicit conversion from PipelineDefinition<TInput, TOutput> to UpdateDefinition<TDocument>.
public static implicit operator UpdateDefinition<TDocument>(PipelineDefinition<TDocument, TDocument> pipeline)
Parameters
pipeline
PipelineDefinition<TDocument, TDocument>The pipeline.
Returns
- UpdateDefinition<TDocument>
The result of the conversion.