コード例 #1
0
ファイル: Network.cs プロジェクト: kekekeks/libvirt-bindings
        public void From_XML(XElement xml)
        {
            if (xml == null)
            {
                return;
            }
            var element = xml.Element("inbound");

            if (element != null)
            {
                Inbound = new Network_Bandwith();
                Inbound.From_XML(element);
            }
            element = xml.Element("outbound");
            if (element != null)
            {
                Outbound = new Network_Bandwith();
                Outbound.From_XML(element);
            }
        }
コード例 #2
0
 public void From_XML(XElement xml)
 {
     if (xml == null) return;
     var element = xml.Element("inbound");
     if (element != null)
     {
         Inbound = new Network_Bandwith();
         Inbound.From_XML(element);
     }
     element = xml.Element("outbound");
     if (element != null)
     {
         Outbound = new Network_Bandwith();
         Outbound.From_XML(element);
     }
 }