Class BsonValueCSharpNullDocumentSerializer<TBsonValue>
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
Represents a serializer for a BsonValue that can round trip C# null and implements IBsonDocumentSerializer.
public class BsonValueCSharpNullDocumentSerializer<TBsonValue> : BsonValueCSharpNullSerializer<TBsonValue>, IBsonSerializer<TBsonValue>, IBsonDocumentSerializer, IBsonSerializer where TBsonValue : BsonValue
Type Parameters
TBsonValue
The type of the bson value.
- Inheritance
-
SerializerBase<TBsonValue>BsonValueCSharpNullSerializer<TBsonValue>BsonValueCSharpNullDocumentSerializer<TBsonValue>
- Implements
-
IBsonSerializer<TBsonValue>
- Inherited Members
- Extension Methods
Constructors
BsonValueCSharpNullDocumentSerializer(IBsonSerializer<TBsonValue>)
Initializes a new instance of the BsonValueCSharpNullDocumentSerializer<TBsonValue> class.
public BsonValueCSharpNullDocumentSerializer(IBsonSerializer<TBsonValue> wrappedSerializer)
Parameters
wrappedSerializer
IBsonSerializer<TBsonValue>The wrapped serializer.
Methods
TryGetMemberSerializationInfo(string, out BsonSerializationInfo)
Tries to get the serialization info for a member.
public bool TryGetMemberSerializationInfo(string memberName, out BsonSerializationInfo serializationInfo)
Parameters
memberName
stringName of the member.
serializationInfo
BsonSerializationInfoThe serialization information.
Returns
- bool
true
if the serialization info exists; otherwisefalse
.