Class RegularExpressionExtensions
Utilities methods for BSON regular expression type
Inheritance
System.Object
RegularExpressionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Serialization.BSON
Assembly: Azos.dll
Syntax
public static class RegularExpressionExtensions
Methods
Count(BSONRegularExpressionOptions)
Returns regex options count
Declaration
public static byte Count(this BSONRegularExpressionOptions options)
Parameters
Type | Name | Description |
---|---|---|
BSONRegularExpressionOptions | options |
Returns
Type | Description |
---|---|
System.Byte |
ToBSONOptions(String)
Declaration
public static BSONRegularExpressionOptions ToBSONOptions(this string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source |
Returns
Type | Description |
---|---|
BSONRegularExpressionOptions |
ToBSONString(BSONRegularExpressionOptions)
Returns BSON-formatted string for regeax options (The options are identified by lower-case characters, which must be stored in alphabetical order).
Declaration
public static string ToBSONString(this BSONRegularExpressionOptions options)
Parameters
Type | Name | Description |
---|---|---|
BSONRegularExpressionOptions | options |
Returns
Type | Description |
---|---|
System.String |