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.10.0.0 (5.10.0)
Syntax public static LambdaExpression ProduceProperBooleanExpressionLambda(
LambdaExpression toFixUp
)
Public Shared Function ProduceProperBooleanExpressionLambda (
toFixUp As LambdaExpression
) As LambdaExpression
Parameters
- toFixUp
- Type: System.Linq.ExpressionsLambdaExpression
To fix up.
Return Value
Type:
LambdaExpressionSee Also