Click or drag to resize

ExpressionCompilerTryCompileTDelegate Method

Tries to compile lambda expression to TDelegate

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

Parameters

lambdaExpr
Type: System.Linq.ExpressionsLambdaExpression

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

flags (Optional)
Type: SphinxConnector.FluentApi.HelpersCompilerFlags

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

Type Parameters

TDelegate

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

Return Value

Type: TDelegate

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