Table of Contents

Class ThrowHelper

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Class that provides helper methods for throwing exceptions.

[Version(4, 0, 0)]
public static class ThrowHelper
Inheritance
ThrowHelper
Inherited Members

Methods

ThrowIfNegative(int, string)

Throws a ArgumentOutOfRange exception if the integer is negative.

ThrowIfNegative(float, string)

Throws a ArgumentOutOfRange exception if the float is negative.

ThrowIfNull(object, string)

Throws a NullReferenceException if the given argument is null.

ThrowIfOutOfRange(int, int, int, string)

Throws a ArgumentOutOfRange exception if the integer is out of range.