IsTrue

public static bool IsTrue(this bool value)
{
    return value;
}
Example:
if ((input == 42).IsTrue())
{
    // handle the case when input is 42
}

Description

Returns 'true' if a Boolean value is true.

Details

Double click on the code to select all.

 

;