[MonoTouch] Strange issue with double values in a Dictionary
Jason Awbrey
jason at awbrey.net
Mon Mar 5 16:05:22 UTC 2012
this works fine for me (MD 2.8.6.5, MT 5.2.5, Mono 2.10.9)
On Mon, Mar 5, 2012 at 4:16 AM, HairyJohn <mail at johnhair.com> wrote:
> Hi guys,
> Really strange one, I might be slightly frazzled after a hardcore coding
> weekend. Can someone cut and paste this code into a MonoTouch app and try
> it
> pls:
>
> 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.
>
> Im using the latest stable releases. Just tried it in VS just to make sure
> I
> wasn't losing marbles and it works as expected.
>
> Cheers
> Hairy
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Strange-issue-with-double-values-in-a-Dictionary-tp4445684p4445684.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/20120305/7546b129/attachment.html>
More information about the MonoTouch
mailing list