Table of Contents

Method ThrowIfNull

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

ThrowIfNull(object, string)

Throws a NullReferenceException if the given argument is null.

public static void ThrowIfNull(this object argument, string argName)

Parameters

argument object

An argument to check.

argName string

The name of the argument.

Exceptions

ArgumentNullException