Class Host
Represents the entry point to code guards.
public static class Host
- Inheritance
-
Host
- Inherited Members
Properties
Throw
Gets the ExceptionRaiser.
public static ExceptionRaiser Throw { get; }
Property Value
Methods
When(bool)
Provides a condition to throw an exception.
Use when: [your condition]
to throw an exception in C# 7.2 or later.
public static bool When(bool when)
Parameters
when
boolA condition to throw an exception.
Returns
- bool
The passed
when
value.