Click or drag to resize

ObjectExtensionsThrowIfNegative Method (Single, String)

Throws a ArgumentOutOfRange exception if the float is negative.

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 4, 1)]
public static void ThrowIfNegative(
	float x,
	string name
)

Parameters

x
Type: SystemSingle
The float to check.
name
Type: SystemString
The name of the variable.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException
See Also