Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NumberUtils.Negate Method

Negates the supplied number.

[Visual Basic]
Public Shared Sub Negate( _
   ByVal number As Object _
)
[C#]
public static object Negate(
   object number
);

Parameters

number
The number to negate.

Return Value

The supplied number negated.

Exceptions

Exception Type Condition
ArgumentException If the supplied number is not a supported numeric type.

See Also

NumberUtils Class | Spring.Util Namespace