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