Click or drag to resize

BsonClassMap<TClass>.MapCreator Method (Expression<Func<TClass, TClass>>)

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

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public BsonCreatorMap MapCreator(
	Expression<Func<TClass, TClass>> creatorLambda
)

Parameters

creatorLambda
Type: System.Linq.Expressions.Expression<Func<TClass, TClass>>
Lambda expression specifying the creator code and parameters to use.

Return Value

Type: BsonCreatorMap
The member map.
See Also