Method MapFactoryMethod
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
MapFactoryMethod(MethodInfo)
Creates a creator map for a factory method and adds it to the class.
public BsonCreatorMap MapFactoryMethod(MethodInfo methodInfo)
Parameters
methodInfo
MethodInfoThe method info.
Returns
- BsonCreatorMap
The creator map (so method calls can be chained).
MapFactoryMethod(MethodInfo, params string[])
Creates a creator map for a factory method and adds it to the class.
public BsonCreatorMap MapFactoryMethod(MethodInfo methodInfo, params string[] argumentNames)
Parameters
methodInfo
MethodInfoThe method info.
argumentNames
string[]The argument names.
Returns
- BsonCreatorMap
The creator map (so method calls can be chained).