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
conditionboolThe boolean condition that must be true for the call to succeed.
messagestringOptional descriptive message included in the exception.
Exceptions
- Exception
Thrown when
conditionis false.
AssertNotNull<T>(T, string)
Throws an exception if the given reference is null.
public static void AssertNotNull<T>(T obj, string message = "")
Parameters
objTThe object instance to verify.
messagestringOptional additional information to include in the exception message.
Type Parameters
TType of the object being checked (must be a reference type or nullable).
Exceptions
- Exception
Thrown when
objis null.