Method MapFactoryMethod
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
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
MethodInfo
The method info.
Returns
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
MethodInfo
The method info.
argumentNames
string[]
The argument names.
Returns
The creator map (so method calls can be chained).