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; } }
public DDNode(DDType type) : this(Guid.NewGuid().ToString(), type) { }
public DDNode(Enum name, DDType type) : this(name.ToString(), type) { }
private DDNode(string name, DDNode parent, DDType type) : this(name, type) { Parent = parent; }