Esempio n. 1
0
        public static MetaMem Create()
        {
            MetaMem r = new MetaMem();

            r.FreeMem = new MetaFreeMem();
            r.FreeID  = new MetaFreeID();
            return(r);
        }
Esempio n. 2
0
        public MetaMem GetMetaMem()
        {
            XElement n = navMeta.Element(metaNamespace + ElementNames.Mem);

            if (n != null)
            {
                return(MetaMem.Create(n));
            }
            else
            {
                return(null);
            }
        }
Esempio n. 3
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);
        }