Пример #1
0
 public ConfigNode()
 {
     this.name    = string.Empty;
     this.id      = string.Empty;
     this._values = new ConfigValueList();
     this._nodes  = new ConfigNodeList();
 }
Пример #2
0
 public ConfigNode(string name)
 {
     this.name = ConfigNode.CleanupInput(name);
     this.id   = string.Empty;
     string[] array = this.name.Split(new char[]
     {
         '(',
         ' ',
         ')'
     }, StringSplitOptions.RemoveEmptyEntries);
     if (array.Length > 1)
     {
         this.name = array[0];
         this.id   = array[1];
     }
     this._values = new ConfigValueList();
     this._nodes  = new ConfigNodeList();
 }