[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateBoolean

ValidateBoolean Method

ValidateBoolean(ExpressionInfo)

Validates an expression value to make sure any literal booleans can be evaluate to either true or false.

Declaration
public static void ValidateBoolean(ExpressionInfo expression)
Parameters
Type Name Description
ExpressionInfo expression

An ExpressionInfo value to validate.

Examples
ExpressionInfo value = ExpressionInfo.FromString("true");
ValidationUtils.ValidateBoolean(value);
Exceptions
Type Condition
InvalidBooleanExpressionException

Throws if the value is not evalueted to boolean.