Replies: 2 comments
-
I think you need to add the Serialiazble attribute to ComplexClass. |
Beta Was this translation helpful? Give feedback.
-
The
In your case, the easiest thing is to implement Typed from memory, so hopefully this is correct: public class SimpleClass : Csla.Core.MobileObject
{
public string FirstName { get; set; }
public string LastName { get; set; }
protected override void OnGetState(SerializationInfo info, MobileFormatter formatter)
{
info.AddValue(nameof(FIrstName), FirstName);
info.AddValue(nameof(LastName), LastName);
}
protected override void OnSetState(SerializationInfo info, MobileFormatter formatter)
{
FirstName = info.GetValue<string>(nameof(FirstName));
LastName = info.GetValue<string>(nameof(LastName));
}
} Your other alternative is to subclass |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Getting an error "Serialization of type object is not supported" while using property type as non-primitive datatype (e.g. Class).
Any solution to get this serialized or ignored during DAL operations.
.
.
.
.
.
Find the attached sample code for the issue reference.
MvcExample.zip
Beta Was this translation helpful? Give feedback.
All reactions