Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator StringOrRegularExpression(string)

Implicit conversion from string to StringOrRegularExpression.

public static implicit operator StringOrRegularExpression(string value)

Parameters

value string

A StringOrRegularExpression.

Returns

StringOrRegularExpression

A StringOrRegularExpression.

implicit operator StringOrRegularExpression(BsonRegularExpression)

Implicit conversion from BsonRegularExpression to StringOrRegularExpression.

public static implicit operator StringOrRegularExpression(BsonRegularExpression value)

Parameters

value BsonRegularExpression

A StringOrRegularExpression.

Returns

StringOrRegularExpression

A StringOrRegularExpression.

implicit operator StringOrRegularExpression(Regex)

Implicit conversion from Regex to StringOrRegularExpression.

public static implicit operator StringOrRegularExpression(Regex value)

Parameters

value Regex

A StringOrRegularExpression.

Returns

StringOrRegularExpression

A StringOrRegularExpression.