public int Get(IntPtr L)
{
int count = LuaDLL.lua_gettop(L);
if (count == 3 && TypeChecker.CheckTypes(L, 2, kclass, typeof(object[])))
{
object arg0 = ToLua.ToVarObject(L, 2);
object[] arg1 = ToLua.CheckObjectArray(L, 3);
object o = property.GetValue(arg0, arg1);
ToLua.Push(L, o);
return 1;
}
else if (count == 6 && TypeChecker.CheckTypes(L, 2, kclass, typeof(uint), typeof(Binder), typeof(object[]), typeof(CultureInfo)))
{
object arg0 = ToLua.ToVarObject(L, 2);
BindingFlags arg1 = (BindingFlags)LuaDLL.lua_tonumber(L, 3);
Binder arg2 = (Binder)ToLua.ToObject(L, 4);
object[] arg3 = ToLua.CheckObjectArray(L, 5);
CultureInfo arg4 = (CultureInfo)ToLua.ToObject(L, 6);
object o = property.GetValue(arg0, arg1, arg2, arg3, arg4);
ToLua.Push(L, o);
return 1;
}
else
{
return LuaDLL.luaL_throw(L, "invalid arguments to method: LuaInterface.LuaProperty.Get");
}
}