Click or drag to resize

ExpressionCompilerCompileFastTDelegate Method (LambdaExpression, Boolean, CompilerFlags)

Compiles lambda expression to TDelegate type. Use ifFastFailedReturnNull parameter to Not fallback to Expression.Compile, useful for testing.

Namespace:  SphinxConnector.FluentApi.Helpers
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntax
public static TDelegate CompileFast<TDelegate>(
	this LambdaExpression lambdaExpr,
	bool ifFastFailedReturnNull = false,
	CompilerFlags flags = CompilerFlags.Default
)
where TDelegate : class

Parameters

lambdaExpr
Type: System.Linq.ExpressionsLambdaExpression

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

ifFastFailedReturnNull (Optional)
Type: SystemBoolean

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

flags (Optional)
Type: SphinxConnector.FluentApi.HelpersCompilerFlags

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

Type Parameters

TDelegate

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

Return Value

Type: TDelegate

[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``1(System.Linq.Expressions.LambdaExpression,System.Boolean,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