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); } }
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 }
public VDFNode(VDFNode parent, string key, VDFData value) { this.Parent = parent; this.Key = key; this.Data = value; }
public dynamic GetValueFromKey(string key) { VDFNode Node = GetNode(key); return(Node.Value); }