Click or drag to resize

LinqUtilsProduceProperBooleanExpressionLambda Method

Produces the proper boolean expression lambda, from the passed in lambda. If the passed in lambda's return type isn't bool it's returned as-is. Otherwise, it's checked whether it contains a boolean expression. If not, it's corrected. If it does, it's returned as-is.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
public static LambdaExpression ProduceProperBooleanExpressionLambda(
	LambdaExpression toFixUp
)

Parameters

toFixUp
Type: System.Linq.ExpressionsLambdaExpression
To fix up.

Return Value

Type: LambdaExpression
See Also