예제 #1
0
            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);
            }
예제 #2
0
파일: UserNameVm.cs 프로젝트: rmarinho/AgFx
            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;
            }