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: VRageAssembly: VRage.Library (in VRage.Library.dll) Version: 1.0.0.0
Syntax 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