Click or drag to resize

ExpressionCompilerCompileFastToIL Method

Compiles a static method to the passed IL Generator. Could be used as alternative for `CompileToMethod` like this
funcExpr.CompileFastToIL(methodBuilder.GetILGenerator())
. Check `IssueTests.Issue179_Add_something_like_LambdaExpression_CompileToMethod.cs` for example.

Namespace:  SphinxConnector.FluentApi.Helpers
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.2.0
Syntax
public static bool CompileFastToIL(
	this LambdaExpression lambdaExpr,
	ILGenerator il,
	CompilerFlags flags = CompilerFlags.Default
)

Parameters

lambdaExpr
Type: System.Linq.ExpressionsLambdaExpression

[Missing <param name="lambdaExpr"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFastToIL(System.Linq.Expressions.LambdaExpression,System.Reflection.Emit.ILGenerator,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

il
Type: System.Reflection.EmitILGenerator

[Missing <param name="il"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFastToIL(System.Linq.Expressions.LambdaExpression,System.Reflection.Emit.ILGenerator,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

flags (Optional)
Type: SphinxConnector.FluentApi.HelpersCompilerFlags

[Missing <param name="flags"/> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFastToIL(System.Linq.Expressions.LambdaExpression,System.Reflection.Emit.ILGenerator,SphinxConnector.FluentApi.Helpers.CompilerFlags)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:SphinxConnector.FluentApi.Helpers.ExpressionCompiler.CompileFastToIL(System.Linq.Expressions.LambdaExpression,System.Reflection.Emit.ILGenerator,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