public override void ReadFrom(XElement xE) { base.ReadFrom(xE); Entries = null; Links = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "entries") { if (Entries == null) { Entries = new List <ManagedCustomer>(); } var entriesItem = new ManagedCustomer(); entriesItem.ReadFrom(xItem); Entries.Add(entriesItem); } else if (localName == "links") { if (Links == null) { Links = new List <ManagedCustomerLink>(); } var linksItem = new ManagedCustomerLink(); linksItem.ReadFrom(xItem); Links.Add(linksItem); } } }
public override void ReadFrom(XElement xE) { base.ReadFrom(xE); Operand = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "operand") { Operand = new ManagedCustomerLink(); Operand.ReadFrom(xItem); } } }
public virtual void ReadFrom(XElement xE) { Links = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "links") { if (Links == null) { Links = new List <ManagedCustomerLink>(); } var linksItem = new ManagedCustomerLink(); linksItem.ReadFrom(xItem); Links.Add(linksItem); } } }
public override void ReadFrom(XElement xE) { base.ReadFrom(xE); Operand = null; OldManagerCustomerId = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "operand") { Operand = new ManagedCustomerLink(); Operand.ReadFrom(xItem); } else if (localName == "oldManagerCustomerId") { OldManagerCustomerId = long.Parse(xItem.Value); } } }