Table of Contents

Method CompileCreatorDelegate

Namespace
MongoDB.Bson.Serialization
Assembly
MongoDB.Bson.dll

CompileCreatorDelegate<TClass>(Expression<Func<TClass, TClass>>, out IEnumerable<MemberInfo>)

Creates and compiles a delegate from a lambda expression.

public Delegate CompileCreatorDelegate<TClass>(Expression<Func<TClass, TClass>> creatorLambda, out IEnumerable<MemberInfo> arguments)

Parameters

creatorLambda Expression<Func<TClass, TClass>>

The lambda expression.

arguments IEnumerable<MemberInfo>

The arguments for the delegate's parameters.

Returns

Delegate

A delegate.

Type Parameters

TClass

The type of the class.