Click or drag to resize

ExpressionCompiler.CompileFast<T1, T2, T3, T4> Method (Expression<Action<T1, T2, T3, T4>>, Boolean, CompilerFlags)

Compiles lambda expression to delegate. 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 Action<T1, T2, T3, T4> CompileFast<T1, T2, T3, T4>(
	this Expression<Action<T1, T2, T3, T4>> lambdaExpr,
	bool ifFastFailedReturnNull = false,
	CompilerFlags flags = CompilerFlags.Default
)

Parameters

lambdaExpr
Type: System.Linq.Expressions.Expression<Action<T1, T2, T3, T4>>

[Missing <param name="lambdaExpr"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

ifFastFailedReturnNull (Optional)
Type: System.Boolean

[Missing <param name="ifFastFailedReturnNull"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

flags (Optional)
Type: SphinxConnector.FluentApi.Helpers.CompilerFlags

[Missing <param name="flags"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

Type Parameters

T1

[Missing <typeparam name="T1"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

T2

[Missing <typeparam name="T2"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

T3

[Missing <typeparam name="T3"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

T4

[Missing <typeparam name="T4"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},System.Boolean,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

Return Value

Type: Action<T1, T2, T3, T4>

[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFast``4(System.Linq.Expressions.Expression{System.Action{``0,``1,``2,``3}},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 Expression<Action<T1, T2, T3, T4>>. 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