public static XElement ToXElement(StatPlaceArrond obj) { return(new XElement("rec", new XElement("CustomerId", obj.CustomerId), new XElement("NamePlaceArrond", obj.NamePlaceArrond), new XElement("Qty", obj.Qty))); }
public static void SetXmlValues(XContainer element, StatPlaceArrond obj) { element.GetXElement("CustomerId").SetValue(obj.CustomerId); element.GetXElement("NamePlaceArrond").SetValue(obj.NamePlaceArrond); element.GetXElement("Qty").SetValue(obj.Qty); }