Class BsonClassMapSerializer

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization

Assembly

MongoDB.Bson.dll

Represents a serializer for a class map.

public sealed class BsonClassMapSerializer<TClass> : SerializerBase<TClass>, IBsonSerializer<TClass>, IBsonIdProvider, IBsonDocumentSerializer, IBsonSerializer, IBsonPolymorphicSerializer, IHasDiscriminatorConvention

Type Parameters

TClass

The type of the class.

Inheritance

BsonClassMapSerializer

Implements

Inherited Members

Extension Methods

Constructors

BsonClassMapSerializer(BsonClassMap)

Initializes a new instance of the BsonClassMapSerializer class.

Properties

DiscriminatorConvention

Gets the discriminator convention.

IsDiscriminatorCompatibleWithObjectSerializer

Gets a value indicating whether this serializer's discriminator is compatible with the object serializer.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

DeserializeClass(BsonDeserializationContext)

Deserializes a value.

Equals(object)

Determines whether the specified object is equal to the current object.

GetDocumentId(object, out object, out Type, out IIdGenerator)

Gets the document Id.

GetHashCode()

Serves as the default hash function.

Serialize(BsonSerializationContext, BsonSerializationArgs, TClass)

Serializes a value.

SetDocumentId(object, object)

Sets the document Id.

TryGetMemberSerializationInfo(string, out BsonSerializationInfo)

Tries to get the serialization info for a member.