Goedel.Throw.If C# (CSharp) Метод

If() публичный статический Метод

Throw an exception if the specified test is not met.
public static If ( bool Test, string Report ) : void
Test bool Must be true or exception is thrown.
Report string Message to report.
Результат void
        public static void If(bool Test, string Report) {
            if (Test) throw new Throw(Report);
            }