Can I use MobileList<interface>

Can I use MobileList<interface>

Old forum URL:

tikluganguly posted on Tuesday, September 21, 2010


    I created a business class with this following property


#region AssignmentGrade

        private static PropertyInfo<MobileList<IAssignmentGrade>> AssignmentGradeProperty = RegisterProperty<MobileList<IAssignmentGrade>>(new PropertyInfo<MobileList<IAssignmentGrade>>("AssignmentGrade"));

        public MobileList<IAssignmentGrade> AssignmentGrade




                SetProperty<MobileList<IAssignmentGrade>>(AssignmentGradeProperty, value);




                return GetProperty<MobileList<IAssignmentGrade>>(AssignmentGradeProperty);




Now this IAssignmentGrade is implemented in a class called GBAssignmentGrade, which is a csla business object.

Now when I am trying to do a dataportal fetch I am getting a serialization error in WfcPortal for GBAssignmentGrade. Is it because I am using the interface in mobilelist? Or something else I am missing? 

Awaiting your feedback 



RockfordLhotka replied on Tuesday, September 21, 2010

I don't think that is possible. The reason is that on deserialization, MobileFormatter needs to create new instances of the type so it can deserialize the data into that instance. Obviously it is not possible to create an instance of an interface, so this is not possible.

Copyright (c) Marimer LLC