Class BsonClassMapSerializer<TClass>
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
Represents a serializer for a class map.
public class BsonClassMapSerializer<TClass> : SerializerBase<TClass>, IBsonSerializer<TClass>, IBsonIdProvider, IBsonDocumentSerializer, IBsonSerializer, IBsonPolymorphicSerializer
Type Parameters
TClass
The type of the class.
- Inheritance
-
SerializerBase<TClass>BsonClassMapSerializer<TClass>
- Implements
-
IBsonSerializer<TClass>
- Inherited Members
- Extension Methods
Constructors
- BsonClassMapSerializer(BsonClassMap)
Initializes a new instance of the BsonClassMapSerializer class.
Properties
- 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.
- GetDocumentId(object, out object, out Type, out IIdGenerator)
Gets the document Id.
- 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.