示例#1
0
        public void AddKeyValue(string key, string value)
        {
            VDFNode newNode = new VDFNode(this.Current, key, new VDFString(value));

            if (this.Head == null)
            {
                this.Head    = newNode;
                this.Current = this.Head;
            }
            else
            {
                ((List <VDFNode>) this.Current.Value).Add(newNode);
            }
        }
示例#2
0
        public void StepBlock(string blockName)
        {
            VDFNode newNode = new VDFNode(this.Current, blockName, new VDFBlock());

            if (this.Head == null)
            {
                this.Head = newNode;
            }
            else
            {
                ((List <VDFNode>) this.Current.Value).Add(newNode);
            }
            this.Current = newNode;             // Step into block
        }
示例#3
0
 public VDFNode(VDFNode parent, string key, VDFData value)
 {
     this.Parent = parent;
     this.Key    = key;
     this.Data   = value;
 }
示例#4
0
        public dynamic GetValueFromKey(string key)
        {
            VDFNode Node = GetNode(key);

            return(Node.Value);
        }