CAESDO.Recruitment.Core.Utils.Check.Invariant C# (CSharp) Метод

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

Invariant check.
public static Invariant ( bool assertion ) : void
assertion bool
Результат void
        public static void Invariant(bool assertion)
        {
            if (UseExceptions) {
                if (!assertion) throw new InvariantException("Invariant failed.");
            }
            else {
                Trace.Assert(assertion, "Invariant failed.");
            }
        }

Same methods

Check::Invariant ( bool assertion, string message ) : void
Check::Invariant ( bool assertion, string message, Exception inner ) : void