[Mono-list] Dictionary`2 compatibility
Robert Jordan
robertj at gmx.net
Fri Mar 20 06:27:08 EDT 2009
zolof wrote:
> Thanks but I have found a better solution.
> The Dictionary is not binary compatible only when it has never been
> initialized (but not when null).
>
> In my sample code, I have replaced
> this.coll1 = new Dictionary<int, int>();
> with
> this.coll1 = new Dictionary<int, int>(1);
>
> and now everything works fine.
>
This is this bug: https://bugzilla.novell.com/show_bug.cgi?id=474009
Robert
More information about the Mono-list
mailing list