DecimalEquals Method (Decimal, Decimal) |
Returns a value indicating whether two specified instances of
Decimal represent the same value.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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:
Booleantrue if
d1 and
d2 are equal; otherwise, false.
See Also