Click or drag to resize
DecimalEquals Method (Decimal, Decimal)
Returns a value indicating whether two specified instances of Decimal represent the same value.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool Equals(
	decimal d1,
	decimal d2
)

Parameters

d1
Type: SystemDecimal
The first value to compare.
d2
Type: SystemDecimal
The second value to compare.

Return Value

Type: Boolean
true if d1 and d2 are equal; otherwise, false.
See Also