Class SingleSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for Singles.
public sealed class SingleSerializer : StructSerializerBase<float>, IBsonSerializer<float>, IBsonSerializer, IRepresentationConfigurable<SingleSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer, IRepresentationConverterConfigurable<SingleSerializer>, IRepresentationConverterConfigurable
- Inheritance
-
SingleSerializer
- Implements
- Inherited Members
- Extension Methods
Constructors
- SingleSerializer()
Initializes a new instance of the SingleSerializer class.
- SingleSerializer(BsonType)
Initializes a new instance of the SingleSerializer class.
- SingleSerializer(BsonType, RepresentationConverter)
Initializes a new instance of the SingleSerializer class.
Properties
- Converter
Gets the converter.
- 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, float)
Serializes a value.
- WithConverter(RepresentationConverter)
Returns a serializer that has been reconfigured with the specified item serializer.
- WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.