Table of Contents

Constructor BsonSerializationArgs

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

BsonSerializationArgs(Type, bool, bool)

Initializes a new instance of the BsonSerializationArgs struct.

public BsonSerializationArgs(Type nominalType, bool serializeAsNominalType, bool serializeIdFirst)

Parameters

nominalType Type

The nominal type.

serializeAsNominalType bool

Whether to serialize as the nominal type.

serializeIdFirst bool

Whether to serialize the id first.