Table of Contents

Method ThrowIfNull

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

ThrowIfNull(object, string)

Throws a NullReferenceException if the object is null.

public static void ThrowIfNull(this object o, string name)

Parameters

o object

An object to check.

name string

The name of the variable this methods is called on.

Exceptions

NullReferenceException