Click or drag to resize
ExceptionsThrowIfTException Method (Boolean)

[This is preliminary documentation and is subject to change.]

Specifies a condition and throws an exception with the provided message if the condition is true.

Namespace: VRage
Assembly: VRage.Library (in VRage.Library.dll) Version: 1.0.0.0
Syntax
C#
public static void ThrowIf<TException>(
	bool condition
)
where TException : Exception

Parameters

condition
Type: SystemBoolean
The conditional expression to test.

Type Parameters

TException
The exception to throw if the condition is true.
See Also