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); } }
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); } }