Example #1
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(Csla.Serialization.Mobile.SerializationInfo info, Csla.Core.StateMode mode)
 {
     info.AddValue("MembershipIdentity.Criteria.Name", Name);
     info.AddValue("MembershipIdentity.Criteria.Password", Password);
     info.AddValue("MembershipIdentity.Criteria.MembershipIdentityType", MembershipIdentityType);
     base.OnGetState(info, mode);
 }
Example #2
0
 /// <summary>
 /// Override this method to set custom field values
 /// into 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);
     Name     = info.GetValue <string>("MembershipIdentity.Criteria.Name");
     Password = info.GetValue <string>("MembershipIdentity.Criteria.Password");
     MembershipIdentityType = info.GetValue <string>("MembershipIdentity.Criteria.MembershipIdentityType");
 }
Example #3
0
 protected override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info, Csla.Core.StateMode mode)
 {
     _name = info.GetValue <string>("_name");
     base.OnSetState(info, mode);
 }