[MonoTouch] Strange issue with double values in a Dictionary
Dimitris Tavlikos
jimitav at gmail.com
Thu Mar 8 10:03:53 UTC 2012
Same here...
Dimitris Tavlikos
Software Developer
Author of "iOS Development using MonoTouch Cookbook"
Email: jimitav at gmail.com
Twitter: http://twitter.com/#!/dtavlikos
Blog: http://software.tavlikos.com
On 8 Mar 2012, at 11:53 AM, HairyJohn 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/6fc8ea8e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dict.png
Type: image/png
Size: 17429 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120308/6fc8ea8e/attachment-0001.png>
More information about the MonoTouch
mailing list