Table of Contents

Class Utils.Debug

Namespace
RichHudFramework
Assembly
RichHudClient.dll

Debugging and runtime assertion utilities.

public static class Utils.Debug
Inheritance
Utils.Debug

Methods

Assert(bool, string)

Throws an exception if the specified condition evaluates to false.

public static void Assert(bool condition, string message = "")

Parameters

condition bool

The boolean condition that must be true for the call to succeed.

message string

Optional descriptive message included in the exception.

Exceptions

Exception

Thrown when condition is false.

AssertNotNull<T>(T, string)

Throws an exception if the given reference is null.

public static void AssertNotNull<T>(T obj, string message = "")

Parameters

obj T

The object instance to verify.

message string

Optional additional information to include in the exception message.

Type Parameters

T

Type of the object being checked (must be a reference type or nullable).

Exceptions

Exception

Thrown when obj is null.