protected override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info, Csla.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"); }
/// <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")); }