BusinessBase and generic collections

BusinessBase and generic collections

Old forum URL: forums.lhotka.net/forums/t/10431.aspx


mhsimkin posted on Thursday, June 09, 2011

Provided that the generic collection is serializable, can it be used as a property in a businessbase derived class?

I would like to use a List<string> as a property.

thanks

marc

JonnyBee replied on Thursday, June 09, 2011

Yes, for WinForms and WPF applications it will work.

For Silverlight / WP you must use MobileList<T> so the MobileFormatter will know how to serialize and deserialize the list.
MobileList will also work for WinForms and WPF.

mhsimkin replied on Thursday, June 09, 2011

and with MVC?

JonnyBee replied on Thursday, June 09, 2011

In MVC you are running .NET code (no need for mobile formatter) so yes, it will work.

Copyright (c) Marimer LLC