예제 #1
0
        public XElement ReadContentFromObject(SystemContext obj)
        {
            XElement content = new XElement("SystemContext");

            XmlRootAttributeVersion.SetVersion(content, ObjectVersion.SystemContext);
            XmlSystemContextFilePolicy xmlFilePolicy = new XmlSystemContextFilePolicy(obj, content);

            xmlFilePolicy.Write();
            return(content);
        }
예제 #2
0
        public void WriteContentToObject(XElement content, SystemContext obj)
        {
            XmlSystemContextFilePolicy xmlFilePolicy = new XmlSystemContextFilePolicy(obj, content);

            xmlFilePolicy.Read();
        }