Class DiscriminatedInterfaceSerializer<TInterface>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for Interfaces.
public sealed class DiscriminatedInterfaceSerializer<TInterface> : SerializerBase<TInterface>, IBsonSerializer<TInterface>, IBsonDocumentSerializer, IBsonSerializer, IDiscriminatedInterfaceSerializer
Type Parameters
TInterface
The type of the interface.
- Inheritance
-
SerializerBase<TInterface>DiscriminatedInterfaceSerializer<TInterface>
- Implements
-
IBsonSerializer<TInterface>
- Inherited Members
- Extension Methods
Constructors
- DiscriminatedInterfaceSerializer()
Initializes a new instance of the DiscriminatedInterfaceSerializer<TInterface> class.
- DiscriminatedInterfaceSerializer(IDiscriminatorConvention)
Initializes a new instance of the DiscriminatedInterfaceSerializer<TInterface> class.
- DiscriminatedInterfaceSerializer(IDiscriminatorConvention, IBsonSerializer<TInterface>)
Initializes a new instance of the DiscriminatedInterfaceSerializer<TInterface> class.
Properties
- InterfaceSerializer
Gets the interface serializer.
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, TInterface)
Serializes a value.
- TryGetMemberSerializationInfo(string, out BsonSerializationInfo)
Tries to get the serialization info for a member.