Table of Contents

Class Host

Namespace
Heleonix.Guard
Assembly
Heleonix.Guard.dll

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

ExceptionRaiser

The ExceptionRaiser.

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 bool

A condition to throw an exception.

Returns

bool

The passed when value.