Пример #1
0
 /// <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(YYT.Serialization.Mobile.SerializationInfo info, YYT.Core.StateMode mode)
 {
     base.OnSetState(info, mode);
     _identity = (IIdentity)MobileFormatter.Deserialize(info.GetValue <byte[]>("BusinessPrincipalBase.Identity"));
 }
Пример #2
0
 /// <summary>
 /// Override this method to get custom field values
 /// from the serialization stream.
 /// </summary>
 /// <param name="info">Serialization info.</param>
 /// <param name="mode">Serialization mode.</param>
 protected override void OnGetState(YYT.Serialization.Mobile.SerializationInfo info, YYT.Core.StateMode mode)
 {
     info.AddValue("BusinessPrincipalBase.Identity", MobileFormatter.Serialize(_identity));
     base.OnGetState(info, mode);
 }