/// <summary>
 /// Override this method to set custom field values
 /// ito the serialization stream.
 /// </summary>
 /// <param name="info">Serialization info.</param>
 /// <param name="mode">Serialization mode.</param>
 protected override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info, Csla.Core.StateMode mode)
 {
     base.OnSetState(info, mode);
     _identity = (IIdentity)MobileFormatter.Deserialize(info.GetValue <byte[]>("CslaPrincipal.Identity"));
 }
Exemple #2
0
 protected override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info, Csla.Core.StateMode mode)
 {
     _name = info.GetValue <string>("_name");
     base.OnSetState(info, mode);
 }