 | throwIfThrowIfAbsurd Method (Double, String, Boolean, Boolean, Boolean, Boolean) |
Namespace:
WhetStone.SystemExtensions
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static void ThrowIfAbsurd(
this double this,
string paramName = "parameter",
bool allowPosInfinity = false,
bool allowNegInfity = false,
bool allowNan = false,
bool allowZero = true
)
Parameters
- this
- Type: SystemDouble
The double to check. - paramName (Optional)
- Type: SystemString
The string of the exception to throw. for generic parameter name. - allowPosInfinity (Optional)
- Type: SystemBoolean
Whether to allow positive infinity. - allowNegInfity (Optional)
- Type: SystemBoolean
Whether to allow negative infinity. - allowNan (Optional)
- Type: SystemBoolean
Whether to allow NAN. - allowZero (Optional)
- Type: SystemBoolean
Whether to allow 0.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also