public void Set(string id, enumVariousElement type, object val) { Element e; CreateElement(id, type, out e); e.Value = val; }
protected bool AccessElement(string name, enumVariousElement type, out Element e) { e = null; Accessor.Name = name; Accessor.Type = type; if (!TableList.ContainsKey(Accessor)) { return(false); } e = TableList[Accessor]; return(true); }
protected void CreateElement(string name, enumVariousElement type, out Element e) { e = null; Accessor.Name = name; Accessor.Type = type; if (!TableList.ContainsKey(Accessor)) { e = new Element(); e.Key = Accessor.Clone(); e.Value = null; TableList.Add(e.Key, e); } else { e = TableList[Accessor]; } }
public void Read(Stream s) { Name = BinaryAccess.ReadString(s); Type = (enumVariousElement)BinaryAccess.ReadInt(s); }
public Key(string name, enumVariousElement type) { this.Name = name; this.Type = type; }
public Key() { this.Name = ""; this.Type = enumVariousElement.Bool; }