Beispiel #1
0
        public static MetaAnchor Create(XElement xmlData)
        {
            if (xmlData == null)
            {
                return(null);
            }

            MetaAnchor r = new MetaAnchor();

            r.Last = SyncMLSimpleElementFactory.Create <MetaLast>(ElementReader.Element(xmlData, ElementNames.Last));
            r.Next = SyncMLSimpleElementFactory.Create <MetaNext>(ElementReader.Element(xmlData, ElementNames.Next));
            return(r);
        }
Beispiel #2
0
        public static MetaMem Create(XElement xmlData)
        {
            if (xmlData == null)
            {
                return(null);
            }

            MetaMem r = new MetaMem();

            r.FreeMem   = SyncMLSimpleElementFactory.Create <MetaFreeMem>(ElementReader.Element(xmlData, ElementNames.FreeMem));
            r.FreeID    = SyncMLSimpleElementFactory.Create <MetaFreeID>(ElementReader.Element(xmlData, ElementNames.FreeID));
            r.SharedMem = SyncMLSimpleElementFactory.Create <MetaSharedMem>(ElementReader.Element(xmlData, ElementNames.SharedMem));
            return(r);
        }