Goedel.KeyNotFoundException.If C# (CSharp) Method

If() public static method

Throw the exception if the condition is true
public static If ( bool Test ) : void
Test bool Condition to test.
return void
        public static void If(bool Test) {
            if (Test) {
                throw new KeyNotFoundException();
                }
            }
KeyNotFoundException