Table of Contents

Class UInt32Serializer

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Represents a serializer for UInt32s.

[CLSCompliant(false)]
public class UInt32Serializer : StructSerializerBase<uint>, IBsonSerializer<uint>, IBsonSerializer, IRepresentationConfigurable<UInt32Serializer>, IRepresentationConfigurable, IHasRepresentationSerializer, IRepresentationConverterConfigurable<UInt32Serializer>, IRepresentationConverterConfigurable
Inheritance
UInt32Serializer
Implements
Inherited Members
Extension Methods

Constructors

UInt32Serializer()

Initializes a new instance of the UInt32Serializer class.

public UInt32Serializer()

UInt32Serializer(BsonType)

Initializes a new instance of the UInt32Serializer class.

public UInt32Serializer(BsonType representation)

Parameters

representation BsonType

The representation.

UInt32Serializer(BsonType, RepresentationConverter)

Initializes a new instance of the UInt32Serializer class.

public UInt32Serializer(BsonType representation, RepresentationConverter converter)

Parameters

representation BsonType

The representation.

converter RepresentationConverter

The converter.

Properties

Converter

Gets the converter.

public RepresentationConverter Converter { get; }

Property Value

RepresentationConverter

The converter.

Representation

Gets the representation.

public BsonType Representation { get; }

Property Value

BsonType

The representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

public override uint Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)

Parameters

context BsonDeserializationContext

The deserialization context.

args BsonDeserializationArgs

The deserialization args.

Returns

uint

A deserialized value.

Serialize(BsonSerializationContext, BsonSerializationArgs, uint)

Serializes a value.

public override void Serialize(BsonSerializationContext context, BsonSerializationArgs args, uint value)

Parameters

context BsonSerializationContext

The serialization context.

args BsonSerializationArgs

The serialization args.

value uint

The object.

WithConverter(RepresentationConverter)

Returns a serializer that has been reconfigured with the specified item serializer.

public UInt32Serializer WithConverter(RepresentationConverter converter)

Parameters

converter RepresentationConverter

The converter.

Returns

UInt32Serializer

The reconfigured serializer.

WithRepresentation(BsonType)

Returns a serializer that has been reconfigured with the specified representation.

public UInt32Serializer WithRepresentation(BsonType representation)

Parameters

representation BsonType

The representation.

Returns

UInt32Serializer

The reconfigured serializer.