Click or drag to resize
SerializerBase<TValue> Class
Represents an abstract base class for serializers.
Inheritance Hierarchy
System.Object
  MongoDB.Bson.Serialization.Serializers.SerializerBase<TValue>
    More...

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

Type Parameters

TValue
The type of the value.

The SerializerBase< TValue> type exposes the following members.

Constructors
  NameDescription
Protected methodSerializerBase<TValue>
Initializes a new instance of the SerializerBase< TValue> class
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 methodObject.)
Protected methodObject.)
Public methodSerialize
Serializes a value.
Public methodObject.)
Top
Extension Methods
Properties
  NameDescription
Public propertyValueType
Gets the type of the values.
Top
See Also
Inheritance Hierarchy
System.Object
  MongoDB.Bson.Serialization.Serializers.SerializerBase<TValue>
    MongoDB.Bson.Serialization.BsonClassMapSerializer<TClass>
    MongoDB.Bson.Serialization.Serializers.BsonValueCSharpNullSerializer<TBsonValue>
    MongoDB.Bson.Serialization.Serializers.BsonValueSerializerBase<TBsonValue>
    MongoDB.Bson.Serialization.Serializers.ClassSerializerBase<TValue>
    MongoDB.Bson.Serialization.Serializers.DiscriminatedInterfaceSerializer<TInterface>
    MongoDB.Bson.Serialization.Serializers.DiscriminatedWrapperSerializer<TValue>
    MongoDB.Bson.Serialization.Serializers.DynamicDocumentBaseSerializer<T>
    MongoDB.Bson.Serialization.Serializers.EnumerableSerializerBase<TValue>
    MongoDB.Bson.Serialization.Serializers.EnumerableSerializerBase<TValue, TItem>
    MongoDB.Bson.Serialization.Serializers.ImpliedImplementationInterfaceSerializer<TInterface, TImplementation>
    MongoDB.Bson.Serialization.Serializers.NullableSerializer<T>
    MongoDB.Bson.Serialization.Serializers.PartiallyRawBsonDocumentSerializer
    MongoDB.Bson.Serialization.Serializers.ProjectingDeserializer<TFrom, TTo>
    MongoDB.Bson.Serialization.Serializers.SealedClassSerializerBase<TValue>
    MongoDB.Bson.Serialization.Serializers.SerializeAsNominalTypeSerializer<TActualType, TNominalType>
    MongoDB.Bson.Serialization.Serializers.StructSerializerBase<TValue>
    MongoDB.Bson.Serialization.Serializers.UndiscriminatedActualTypeSerializer<TValue>
    MongoDB.Driver.CommandResultSerializer<TCommandResult>
    MongoDB.Driver.Core.Operations.FindAndModifyValueDeserializer<TResult>

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant