Returns a value that indicates whether two decimal values are equal.
true if d1 and d2 are equal; otherwise, false.
The decimal.op_Equality(decimal, decimal) method defines the operation of the equality operator for decimal values. It enables code such as the following:
code reference: System.Decimal.Operators#1
If the language you're using doesn't support custom operators, call the decimal.Equals(decimal) method instead.