[MonoTouch] Strange issue with double values in a Dictionary
Dimitris Tavlikos
jimitav at gmail.com
Thu Mar 8 10:18:09 UTC 2012
Ok, I tried to post another screenshot but I had to make it really small.
Anyway, I do indeed get messed up values in the Immediate window.
MonoDevelop 2.8.6.5, MT 5.2.5, iPhone 4 on iOS 5.1
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
More information about the MonoTouch
mailing list