Table of Contents

Class RegexSerializer

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Represents a serializer for Regex.

public sealed class RegexSerializer : SealedClassSerializerBase<Regex>, IBsonSerializer<Regex>, IBsonSerializer, IRepresentationConfigurable<RegexSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
Inheritance
RegexSerializer
Implements
Inherited Members
Extension Methods

Constructors

RegexSerializer()

Initializes a new instance of the RegexSerializer class.

RegexSerializer(BsonType)

Initializes a new instance of the RegexSerializer class.

Properties

RegularExpressionInstance

Gets a cached instance of a RegexSerializer with RegularExpression representation.

Representation

Gets the representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

Serialize(BsonSerializationContext, BsonSerializationArgs, Regex)

Serializes a value.

WithRepresentation(BsonType)

Returns a serializer that has been reconfigured with the specified representation.