Click or drag to resize

ExpressionCompilerTryCompileWithPreCreatedClosureTDelegate Method (LambdaExpression, ConstantExpression, CompilerFlags)

Tries to compile lambda expression to TDelegate with the provided closure object and constant expressions (or lack there of)

Namespace:  SphinxConnector.FluentApi.Helpers
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntax
public static TDelegate TryCompileWithPreCreatedClosure<TDelegate>(
	this LambdaExpression lambdaExpr,
	ConstantExpression[] closureConstantsExprs,
	CompilerFlags flags
)
where TDelegate : class

Parameters

lambdaExpr
Type: System.Linq.ExpressionsLambdaExpression

[Missing <param name="lambdaExpr"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.TryCompileWithPreCreatedClosure``1(System.Linq.Expressions.LambdaExpression,System.Linq.Expressions.ConstantExpression[],SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

closureConstantsExprs
Type: System.Linq.ExpressionsConstantExpression

[Missing <param name="closureConstantsExprs"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.TryCompileWithPreCreatedClosure``1(System.Linq.Expressions.LambdaExpression,System.Linq.Expressions.ConstantExpression[],SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

flags
Type: SphinxConnector.FluentApi.HelpersCompilerFlags

[Missing <param name="flags"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.TryCompileWithPreCreatedClosure``1(System.Linq.Expressions.LambdaExpression,System.Linq.Expressions.ConstantExpression[],SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

Type Parameters

TDelegate

[Missing <typeparam name="TDelegate"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.TryCompileWithPreCreatedClosure``1(System.Linq.Expressions.LambdaExpression,System.Linq.Expressions.ConstantExpression[],SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

Return Value

Type: TDelegate

[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.TryCompileWithPreCreatedClosure``1(System.Linq.Expressions.LambdaExpression,System.Linq.Expressions.ConstantExpression[],SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type LambdaExpression. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also