Operator implicit operator
implicit operator StringOrRegularExpression(string)
Implicit conversion from string to StringOrRegularExpression.
public static implicit operator StringOrRegularExpression(string value)
Parameters
value
stringA StringOrRegularExpression.
Returns
- StringOrRegularExpression
A StringOrRegularExpression.
implicit operator StringOrRegularExpression(BsonRegularExpression)
Implicit conversion from BsonRegularExpression to StringOrRegularExpression.
public static implicit operator StringOrRegularExpression(BsonRegularExpression value)
Parameters
value
BsonRegularExpressionA StringOrRegularExpression.
Returns
- StringOrRegularExpression
A StringOrRegularExpression.
implicit operator StringOrRegularExpression(Regex)
Implicit conversion from Regex to StringOrRegularExpression.
public static implicit operator StringOrRegularExpression(Regex value)
Parameters
value
RegexA StringOrRegularExpression.
Returns
- StringOrRegularExpression
A StringOrRegularExpression.