[MonoTouch] Strange issue with double values in a Dictionary

HairyJohn mail at johnhair.com
Thu Mar 8 09:53:24 UTC 2012


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.


More information about the MonoTouch mailing list