예제 #1
0
        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);
        }
예제 #2
0
 public static LiteValue AddObjectEx(LiteObject Obj)
 {
     return(new LiteValue(LiteValueType.Object, AddObject(Obj)));
 }