Click or drag to resize

CreatorMapDelegateCompilerCompileCreatorDelegateTClass Method

Creates and compiles a delegate from a lambda expression.

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public Delegate CompileCreatorDelegate<TClass>(
	Expression<Func<TClass, TClass>> creatorLambda,
	out IEnumerable<MemberInfo> arguments
)

Parameters

creatorLambda
Type: System.Linq.ExpressionsExpressionFuncTClass, TClass
The lambda expression.
arguments
Type: System.Collections.GenericIEnumerableMemberInfo
The arguments for the delegate's parameters.

Type Parameters

TClass
The type of the class.

Return Value

Type: Delegate
A delegate.
See Also