Click or drag to resize

SerializerBaseTValue Class

Represents an abstract base class for serializers.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.Serialization.SerializersSerializerBaseTValue
    More...

Namespace:  MongoDB.Bson.Serialization.Serializers
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public abstract class SerializerBase<TValue> : IBsonSerializer<TValue>, 
	IBsonSerializer

Type Parameters

TValue
The type of the value.

The SerializerBaseTValue type exposes the following members.

Constructors
  NameDescription
Protected methodSerializerBaseTValue
Initializes a new instance of the SerializerBaseTValue class
Top
Properties
  NameDescription
Public propertyValueType
Gets the type of the values.
Top
Methods
  NameDescription
Protected methodCreateCannotBeDeserializedException
Creates an exception to throw when a type cannot be deserialized.
Protected methodCreateCannotBeSerializedException
Creates an exception to throw when a type cannot be deserialized.
Protected methodCreateCannotDeserializeFromBsonTypeException
Creates an exception to throw when a type cannot be deserialized from a BsonType.
Public methodDeserialize
Deserializes a value.
Protected methodEnsureBsonTypeEquals
Ensures that the BsonType equals the expected type.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerialize
Serializes a value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.Serialization.SerializersSerializerBaseTValue
    MongoDB.Bson.SerializationBsonClassMapSerializerTClass
    MongoDB.Bson.Serialization.SerializersBsonValueCSharpNullSerializerTBsonValue
    MongoDB.Bson.Serialization.SerializersBsonValueSerializerBaseTBsonValue
    MongoDB.Bson.Serialization.SerializersClassSerializerBaseTValue
    MongoDB.Bson.Serialization.SerializersDiscriminatedInterfaceSerializerTInterface
    MongoDB.Bson.Serialization.SerializersDiscriminatedWrapperSerializerTValue
    MongoDB.Bson.Serialization.SerializersDynamicDocumentBaseSerializerT
    MongoDB.Bson.Serialization.SerializersEnumerableSerializerBaseTValue
    MongoDB.Bson.Serialization.SerializersEnumerableSerializerBaseTValue, TItem
    MongoDB.Bson.Serialization.SerializersImpliedImplementationInterfaceSerializerTInterface, TImplementation
    MongoDB.Bson.Serialization.SerializersNullableSerializerT
    MongoDB.Bson.Serialization.SerializersPartiallyRawBsonDocumentSerializer
    MongoDB.Bson.Serialization.SerializersProjectingDeserializerTFrom, TTo
    MongoDB.Bson.Serialization.SerializersSealedClassSerializerBaseTValue
    MongoDB.Bson.Serialization.SerializersSerializeAsNominalTypeSerializerTActualType, TNominalType
    MongoDB.Bson.Serialization.SerializersStructSerializerBaseTValue
    MongoDB.Bson.Serialization.SerializersUndiscriminatedActualTypeSerializerTValue
    MongoDB.DriverCommandResultSerializerTCommandResult
    MongoDB.Driver.Core.MiscFixedCountBatchableSourceSerializerTItem
    MongoDB.Driver.Core.MiscSizeLimitingBatchableSourceSerializerTItem
    MongoDB.Driver.Core.OperationsFindAndModifyValueDeserializerTResult