Table of Contents

Method MapConstructor

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

MapConstructor(ConstructorInfo)

Creates a creator map for a constructor and adds it to the class map.

public BsonCreatorMap MapConstructor(ConstructorInfo constructorInfo)

Parameters

constructorInfo ConstructorInfo

The constructor info.

Returns

BsonCreatorMap

The creator map (so method calls can be chained).

MapConstructor(ConstructorInfo, params string[])

Creates a creator map for a constructor and adds it to the class map.

public BsonCreatorMap MapConstructor(ConstructorInfo constructorInfo, params string[] argumentNames)

Parameters

constructorInfo ConstructorInfo

The constructor info.

argumentNames string[]

The argument names.

Returns

BsonCreatorMap

The creator map (so method calls can be chained).