ArgumentBooleanGuard Class

Summary

Argument System.Boolean validator.
Namespace
oehen.arguard
Base Types
  • object
graph BT Type-->Base0["object"] Type["ArgumentBooleanGuard"] class Type type-node

Syntax

public static class ArgumentBooleanGuard

Methods

Name Value Summary
ThrowIfFalse(bool, string) void
Throws an System.ArgumentException if argument is false.
static
ThrowIfTrue(bool, string) void
Throws an System.ArgumentException if argument is true.
static

Extension Methods

Name Value Summary
ThrowIfNotTypeOf<T>(string) T
Throws an System.InvalidOperationException if argument is not type of T.
GitHub