Table of Contents

Class StringSerializer

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

Represents a serializer for Strings.

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

Constructors

StringSerializer()

Initializes a new instance of the StringSerializer class.

StringSerializer(BsonType)

Initializes a new instance of the StringSerializer class.

Properties

Instance

Gets a cached instance of a default string serializer.

Representation

Gets the representation.

Methods

DeserializeValue(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.

SerializeValue(BsonSerializationContext, BsonSerializationArgs, string)

Serializes a value.

WithRepresentation(BsonType)

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