public ContactInformation(XElement node, string @namespace) { var element = node.Element(XName.Get("ContactPersonPrimary", @namespace)); if (element != null) ContactPersonPrimary = new ContactPersonPrimary(element, @namespace); element = node.Element(XName.Get("ContactPosition", @namespace)); if (element != null) ContactPosition = element.Value; element = node.Element(XName.Get("ContactAddress", @namespace)); if (element != null) ContactAddress = new ContactAddress(element, @namespace); element = node.Element(XName.Get("ContactVoiceTelephone", @namespace)); if (element != null) ContactVoiceTelephone = element.Value; element = node.Element(XName.Get("ContactFacsimileTelephone", @namespace)); if (element != null) ContactFacsimileTelephone = element.Value; element = node.Element(XName.Get("ContactElectronicMailAddress", @namespace)); if (element != null) ContactElectronicMailAddress = element.Value; }
public ContactInformation(XElement node, string @namespace) { var element = node.Element(XName.Get("ContactPersonPrimary", @namespace)); if (element != null) { ContactPersonPrimary = new ContactPersonPrimary(element, @namespace); } element = node.Element(XName.Get("ContactPosition", @namespace)); if (element != null) { ContactPosition = element.Value; } element = node.Element(XName.Get("ContactAddress", @namespace)); if (element != null) { ContactAddress = new ContactAddress(element, @namespace); } element = node.Element(XName.Get("ContactVoiceTelephone", @namespace)); if (element != null) { ContactVoiceTelephone = element.Value; } element = node.Element(XName.Get("ContactFacsimileTelephone", @namespace)); if (element != null) { ContactFacsimileTelephone = element.Value; } element = node.Element(XName.Get("ContactElectronicMailAddress", @namespace)); if (element != null) { ContactElectronicMailAddress = element.Value; } }