예제 #1
0
 public DDNode(string name, DDType type)
 {
     if (!IsNameCorect(name))
     {
         throw new DDNodeIncorrectNameException(name);
     }
     attributes = new DDAttributesCollection();
     Name       = name;
     childNodes = new Dictionary <string, DDNode>();
     if ((type == null) || (type.Name == null))
     {
         Type.Name = new DDType(string.Empty);
     }
     else
     {
         Type = type;
     }
 }
예제 #2
0
 public DDNode(DDType type)
     : this(Guid.NewGuid().ToString(), type)
 {
 }
예제 #3
0
 public DDNode(Enum name, DDType type)
     : this(name.ToString(), type)
 {
 }
예제 #4
0
 private DDNode(string name, DDNode parent, DDType type)
     : this(name, type)
 {
     Parent = parent;
 }