I'm using a CSLA MobileList containing CriteriaBase derived objects.
I need the list to serialize from SL3 to .NET.
I've noticed that if the list contains simple objects like String that the serialization/deseriaization process succeeds however if I insert CriteriaBase derived objects in to the list I get serialization errors.
I should add that my MobileList is a managed backed field on a CriteriaBase derived object.
I should also add that all properties in this scenario are managed backed fields.
I've noticed the same issue with MobileDictionary when inserting Critiera objects as opposed to simple objects.
Is it possible to insert CriteriaBase derived objects in to a MobileList and have CSLA serialize the list correctly or can it only handle simple types?
Thanks in advance
CriteriaBase derives from MobileObject, and so should work fine with MobileList - assuming your properties are managed, or you override the OnGetState/OnSetState methods to move your private fields, and assuming your criteria properties are all primitive types (string, int, etc).
Copyright (c) Marimer LLC