protected override void OnSetState(Serialization.Mobile.SerializationInfo info, Core.StateMode mode) { base.OnSetState(info, mode); Name = info.GetValue <string>("SilverlightPrincipal.Criteria.Name"); Password = info.GetValue <string>("SilverlightPrincipal.Criteria.Password"); ProviderType = info.GetValue <string>("SilverlightPrincipal.Criteria.ProviderType"); }
protected override void OnGetState(Serialization.Mobile.SerializationInfo info, Core.StateMode mode) { info.AddValue("SilverlightPrincipal.Criteria.Name", Name); info.AddValue("SilverlightPrincipal.Criteria.Password", Password); info.AddValue("SilverlightPrincipal.Criteria.ProviderType", ProviderType); base.OnGetState(info, mode); }