[MonoTouch] Strange issue with double values in a Dictionary

Craig Dunn craig.dunn at conceptdevelopment.net
Thu Mar 8 10:00:26 UTC 2012


iPhone4s, iOS5.0.1

everything looks fine to me...
http://imgur.com/VOfp6


On Thu, Mar 8, 2012 at 8:53 PM, HairyJohn <mail at johnhair.com> wrote:

> Can somebody try this code on an actual device pleeeeease? Driving me
> nutty.
>
>            Dictionary<int, double> test = new Dictionary<int, double>();
>            test[0] = 100;
>            test[1] = 200;
>            test[2] = 300;
>            test[3] = 400;
>
>            Console.Out.WriteLine(test[1]);
>
> Put a breakpoint on the Console.Out and evaluate the contents of the
> dictionary. The values appear to be random, each time you evaluate a value
> it can be different, or zero.
>
> Thanks!
> Hairy
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Strange-issue-with-double-values-in-a-Dictionary-tp4445684p4456011.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120308/0171c7ac/attachment.html>


More information about the MonoTouch mailing list