protected override object DeserializeCore(LoadContext context, System.Xml.Linq.XElement xml, Type objectType, System.IO.Stream stream) { //<user nsid="12037949632@N01"> // <username>Stewart</username> //</user> bool s; string nsid = TryGetValue(xml, "nsid", null, out s); if (s) { var dl = new UserNameVm((string)context.Identity); dl.UserId = nsid; return(dl); } return(null); }
protected override object DeserializeCore(LoadContext context, System.Xml.Linq.XElement xml, Type objectType, System.IO.Stream stream) { //<user nsid="12037949632@N01"> // <username>Stewart</username> //</user> bool s; string nsid = TryGetValue(xml, "nsid", null, out s); if (s) { var dl = new UserNameVm((string)context.Identity); dl.UserId = nsid; return dl; } return null; }