Method CompileFactoryMethodDelegate

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

Namespace

MongoDB.Bson.Serialization

Assembly

MongoDB.Bson.dll

CompileFactoryMethodDelegate(MethodInfo)

Creates and compiles a delegate that calls a factory method.

public Delegate CompileFactoryMethodDelegate(MethodInfo methodInfo)

Parameters

methodInfo MethodInfo

the method.

Returns

Delegate

A delegate that calls the factory method.