Skip to main content
All docs
V26.1
  • Guard.IsTrue(Boolean, String) Method

    Checks whether the expression returns true. If it returns false, the method throws an exception with the specified text.

    Namespace: DevExpress.ExpressApp.Utils

    Assembly: DevExpress.ExpressApp.v26.1.dll

    Declaration

    public static void IsTrue(
        bool expression,
        string message
    )

    Parameters

    Name Type Description
    expression Boolean

    The expression to check.

    message String

    The exception message.

    See Also