Mono Class Library: System.Decimal Overview | Members

System.Decimal.Equals Method

Determines whether the current instance and the specified decimal have the same value. Trailing zero digits in the fractional part are ignored.

public bool Equals (decimal value)

Parameters

value
The decimal to compare to the current instance.

Returns

true if value is numerically equal to (has the same value as) the current instance; otherwise, false.

Remarks

Note: This method is implemented to support the IEquatable<Decimal> interface.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0