Class StringSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for Strings.
public 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.
- SerializeValue(BsonSerializationContext, BsonSerializationArgs, string)
Serializes a value.
- WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.