public Node(string location, string name, Address[] address) { if (string.IsNullOrEmpty(name) && ((address == null) || (address.Length == 0))) throw new ArgumentException("Node must have at least one either name or Address node."); this.location = location; this.name = name; this.address = address; }
public Node(string location, string name, Address[] address, string ident, NodeCategoryEnum category) : this(location, name, address) { this.ident = string.IsNullOrEmpty(ident) ? "0" : ident; this.category = category; }
public Node(Address[] address) { if ((address == null) || (address.Length == 0)) throw new ArgumentException("Node must have at least one either name or Address node."); this.address = address; }