Class StringOrRegularExpression
Represents a value that is either a string or a BsonRegularExpression.
public class StringOrRegularExpression
  - Inheritance
 - 
      
      StringOrRegularExpression
 
- Inherited Members
 
Constructors
- StringOrRegularExpression(BsonRegularExpression)
 Initializes an instance of a StringOrRegularExpression.
- StringOrRegularExpression(string)
 Initializes an instance of a StringOrRegularExpression.
Properties
- RegularExpression
 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 StringOrRegularExpression(BsonRegularExpression)
 Implicit conversion from BsonRegularExpression to StringOrRegularExpression.
- implicit operator StringOrRegularExpression(string)
 Implicit conversion from string to StringOrRegularExpression.
- implicit operator StringOrRegularExpression(Regex)
 Implicit conversion from Regex to StringOrRegularExpression.