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 virtual void ReadFrom(XElement xE) { Manager = null; Client = null; CreationDate = null; ExpirationDate = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "manager") { Manager = new ManagedCustomer(); Manager.ReadFrom(xItem); } else if (localName == "client") { Client = new ManagedCustomer(); Client.ReadFrom(xItem); } else if (localName == "creationDate") { CreationDate = xItem.Value; } else if (localName == "expirationDate") { ExpirationDate = xItem.Value; } } }
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 ManagedCustomer(); Operand.ReadFrom(xItem); } } }
public virtual void ReadFrom(XElement xE) { Value = null; foreach (var xItem in xE.Elements()) { var localName = xItem.Name.LocalName; if (localName == "value") { if (Value == null) { Value = new List <ManagedCustomer>(); } var valueItem = new ManagedCustomer(); valueItem.ReadFrom(xItem); Value.Add(valueItem); } } }