Operator implicit operator
implicit operator BsonRegularExpression(Regex)
Converts a Regex to a BsonRegularExpression.
public static implicit operator BsonRegularExpression(Regex value)
Parameters
value
RegexA Regex.
Returns
- BsonRegularExpression
A BsonRegularExpression.
implicit operator BsonRegularExpression(string)
Converts a string to a BsonRegularExpression.
public static implicit operator BsonRegularExpression(string value)
Parameters
value
stringA string.
Returns
- BsonRegularExpression
A BsonRegularExpression.