public static int AddObject(LiteObject Obj) { if (ObjectHash_.ContainsKey(Obj)) { return(ObjectHash_[Obj]); } ObjectTable_.Add(Obj); ObjectHash_.Add(Obj, ObjectTable_.Count - 1); return(ObjectTable_.Count - 1); }
public static LiteValue AddObjectEx(LiteObject Obj) { return(new LiteValue(LiteValueType.Object, AddObject(Obj))); }