Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }