Class StringOrRegularExpression
Represents a value that is either a string or a BsonRegularExpression.
- Inheritance
-
String
OrRegular Expression
- Inherited Members
Constructors
- String
OrRegular Expression(Bson Regular Expression) Initializes an instance of a StringOrRegularExpression.
- String
OrRegular Expression(string) Initializes an instance of a StringOrRegularExpression.
Properties
- Regular
Expression Gets the BsonRegularExpression value (returns null if value is not a BsonRegularExpression).
- String
Gets the string value (returns null if value is not a string).
- Type
Gets the type of the value.
Operators
- implicit operator String
OrRegular Expression(Bson Regular Expression) Implicit conversion from BsonRegularExpression to StringOrRegularExpression.
- implicit operator String
OrRegular Expression(string) Implicit conversion from string to StringOrRegularExpression.
- implicit operator String
OrRegular Expression(Regex) Implicit conversion from Regex to StringOrRegularExpression.