コード例 #1
0
        public override void WriteToXML(XElement root)
        {
            XElement xmlElement = new XElement("CompositionInstance");

            base.WriteToXML(xmlElement);
            ComponentInstances.WriteToXML(xmlElement);
            Connections.WriteToXML(xmlElement);
            PortsDefenitions.WriteToXML(xmlElement);
            InternalPortsInstances.WriteToXML(xmlElement, "Internal");
            root.Add(xmlElement);
        }
コード例 #2
0
        public override void WriteToXML(XElement root)
        {
            XElement xmlElement = new XElement("ComponentDefenition");
            base.WriteToXML(xmlElement);
            Ports.WriteToXML(xmlElement);
            Runnables.WriteToXML(xmlElement);
            PerInstanceMemoryList.WriteToXML(xmlElement);
            CDataDefenitions.WriteToXML(xmlElement);
            XElement multInstantiation = new XElement("MultipleInstantiation", MultipleInstantiation.ToString());
            xmlElement.Add(multInstantiation);

            root.Add(xmlElement);
        }