public object LuaToObject()
        {
            List <object> target = new List <object>(list.Count);

            foreach (object value in list)
            {
                object obj = LuaInstance.LuaToObject(value);
                target.Add(obj);
            }
            return(target);
        }
示例#2
0
        public object LuaToObject()
        {
            Dictionary <object, object> target = new Dictionary <object, object>(map.Count);

            foreach (KeyValuePair <object, object> entry in map)
            {
                object key   = LuaInstance.LuaToObject(entry.Key);
                object value = LuaInstance.LuaToObject(entry.Value);
                target[key] = value;
            }
            return(target);
        }
示例#3
0
        public override void Write(object obj)
        {
            object target = LuaInstance.LuaToObject(obj);

            resultSet.Put(target);
        }