[Mono-list] Dictionary`2 compatibility

zolof prince0 at hotmail.com
Fri Mar 20 05:11:08 EDT 2009


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.

-- 
View this message in context: http://www.nabble.com/Dictionary%602-compatibility-tp22581613p22616708.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list