Goedel.Throw.IfNot C# (CSharp) Méthode

IfNot() public static méthode

Throw an exception if the specified test is met.
public static IfNot ( bool Test, string Report ) : void
Test bool Must be false or exception is thrown.
Report string Message to report.
Résultat void
        public static void IfNot(bool Test, string Report) {
            if (!Test) throw new Throw(Report);
            }