[Mono-list] OnDeserialization problem

Dave Null eric.jacoboni at gmail.com
Fri Mar 20 19:15:32 EDT 2009




Chris Howie wrote:
> 
> 
> NonSerialized members are initialized to the default value for that
> type, which is null for reference types like arrays.  So you can't
> assign anything to tab[i] until you create the array.  It looks like
> you are missing "tab = new int[limite];".
> 

Thanks a lot!

I've created tab in the ctor but forgot to do it again in the hook. 

Problem fixed.
-- 
View this message in context: http://www.nabble.com/OnDeserialization-problem-tp22234369p22630491.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list