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); }
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); }
public override void Write(object obj) { object target = LuaInstance.LuaToObject(obj); resultSet.Put(target); }