Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }