Class ByteArraySerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for ByteArrays.
public class ByteArraySerializer : SealedClassSerializerBase<byte[]>, IBsonSerializer<byte[]>, IBsonSerializer, IRepresentationConfigurable<ByteArraySerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
- Inheritance
-
ByteArraySerializer
- Implements
- Inherited Members
- Extension Methods
Constructors
- ByteArraySerializer()
Initializes a new instance of the ByteArraySerializer class.
- ByteArraySerializer(BsonType)
Initializes a new instance of the ByteArraySerializer class.
Properties
- Instance
Gets a cached instance of a ByteArraySerializer.
- Representation
Gets the representation.
Methods
- DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a value.
- SerializeValue(BsonSerializationContext, BsonSerializationArgs, byte[])
Serializes a value.
- WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.