Table of Contents

Operator implicit operator

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

implicit operator BsonRegularExpression(Regex)

Converts a Regex to a BsonRegularExpression.

public static implicit operator BsonRegularExpression(Regex value)

Parameters

value Regex

A Regex.

Returns

BsonRegularExpression

A BsonRegularExpression.

implicit operator BsonRegularExpression(string)

Converts a string to a BsonRegularExpression.

public static implicit operator BsonRegularExpression(string value)

Parameters

value string

A string.

Returns

BsonRegularExpression

A BsonRegularExpression.