Exemplo n.º 1
0
 public static XElement ToXElement(StatNationPopup obj)
 {
     return(new XElement("rec",
                         new XElement("CustomerId", obj.CustomerId),
                         new XElement("NameNation", obj.NameNation),
                         new XElement("Qty", obj.Qty)));
 }
Exemplo n.º 2
0
 public static void SetXmlValues(XContainer element, StatNationPopup obj)
 {
     element.GetXElement("CustomerId").SetValue(obj.CustomerId);
     element.GetXElement("NameNation").SetValue(obj.NameNation);
     element.GetXElement("Qty").SetValue(obj.Qty);
 }