On Sat, 05 Nov 2011 11:31:12, Robert Jordan <[email protected]> wrote: > You didn't answer my question. It's crucial to know if you were using > the loop variable ("item") inside the delegate, as this is the only > source of such problems.
Yes I was using item.Key, but failed to see the relevance of it at the time. > See Eric Lippert's article. He's one of the C# fathers and he's > definitely not joking: > http://blogs.msdn.com/b/ericlippert/archive/2009/11/12/closing-over-the-loop-variable-considered-harmful.aspx > Thanks for the link, that cleared up what I needed to know. Thanks. Dominique. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
