[MonoTouch] Strange issue with double values in a Dictionary
HairyJohn
mail at johnhair.com
Mon Mar 5 10:16:35 UTC 2012
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.
More information about the MonoTouch
mailing list