Method SetCreator

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization

Assembly

MongoDB.Bson.dll

SetCreator(Func)

Sets the creator for the object.

public BsonClassMap SetCreator(Func<object> creator)

Parameters

creator Func<object>

The creator.

Returns

BsonClassMap

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