Class AggregateBucketAutoResultIdSerializer<TValue>
A serializer for AggregateBucketAutoResultId.
public class AggregateBucketAutoResultIdSerializer<TValue> : ClassSerializerBase<AggregateBucketAutoResultId<TValue>>, IBsonSerializer<AggregateBucketAutoResultId<TValue>>, IBsonDocumentSerializer, IBsonSerializer
Type Parameters
TValue
The type of the values.
- Inheritance
-
AggregateBucketAutoResultIdSerializer<TValue>
- Implements
- Inherited Members
Constructors
AggregateBucketAutoResultIdSerializer(IBsonSerializer<TValue>)
Initializes a new instance of the AggregateBucketAutoResultIdSerializer<TValue> class.
public AggregateBucketAutoResultIdSerializer(IBsonSerializer<TValue> valueSerializer)
Parameters
valueSerializer
IBsonSerializer<TValue>The value serializer.
Methods
DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs)
Deserializes a class.
protected override AggregateBucketAutoResultId<TValue> DeserializeValue(BsonDeserializationContext context, BsonDeserializationArgs args)
Parameters
context
BsonDeserializationContextThe deserialization context.
args
BsonDeserializationArgsThe deserialization args.
Returns
- AggregateBucketAutoResultId<TValue>
A deserialized value.
SerializeValue(BsonSerializationContext, BsonSerializationArgs, AggregateBucketAutoResultId<TValue>)
Serializes a value of type {TValue}.
protected override void SerializeValue(BsonSerializationContext context, BsonSerializationArgs args, AggregateBucketAutoResultId<TValue> value)
Parameters
context
BsonSerializationContextThe serialization context.
args
BsonSerializationArgsThe serialization args.
value
AggregateBucketAutoResultId<TValue>The value.
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
.