Mono Class Library: System.Decimal Overview | Members

System.Decimal.Equals Method

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

public override bool Equals (object value)

Parameters

value
The object to compare to the current instance.

Returns

true if value has the same type and is numerically equal to (has the same value as) the current instance. If value is a null reference or is not an instance of decimal, returns false.

Remarks

Note: This method overrides object.Equals(object).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0