/// <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("MembershipIdentity.Criteria.Name", Name); info.AddValue("MembershipIdentity.Criteria.Password", Password); info.AddValue("MembershipIdentity.Criteria.MembershipIdentityType", MembershipIdentityType); info.AddValue("MembershipIdentity.Criteria.IsRunOnWebServer", IsRunOnWebServer); base.OnGetState(info, mode); }
/// <summary> /// Override this method to insert your field values /// into the MobileFormatter serialzation stream. /// </summary> /// <param name="info"> /// Object containing the data to serialize. /// </param> protected override void OnGetState(YYT.Serialization.Mobile.SerializationInfo info) { base.OnGetState(info); info.AddValue("YYT.Core.ReadOnlyBindingList._isReadOnly", _isReadOnly); }