[Mono-bugs] [Bug 60227][Wis] Changed - System.Decimal class has different behaviour from MS implementation

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 5 15:18:57 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jvetter at gmail.com.


--- shadow/60227	2007-02-19 16:48:21.000000000 -0500
+++ shadow/60227.tmp.29405	2007-08-05 15:18:57.000000000 -0400
@@ -94,6 +94,20 @@
 Note on Priority: This seems cosmetic, but NUnit depends on the MS
 behavior when comparing a decimal to any other numeric. "One of these
 days" we'll figure out a better way, but for now it's breaking us.
+------- Additional Comments From jvetter at gmail.com  2007-08-05 15:18 -------
+I found another example problem that may or may not be related to 
+this bug.
+Assumming we have:
+  decimal d1 = 2;
+  decimal d2 = 2.0M;
+  Dictionary<decimal,decimal> d;
+  d.add(d1,d1);
+On the mono implementation: d[d2] does NOT exist
+On the ms implementation: d[d2] does exist

More information about the mono-bugs mailing list