static int get_sorting(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer         obj = (UIGridContainer)o;
            UIGridContainer.Sorting ret = obj.sorting;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sorting on a nil value"));
        }
    }
    static int set_sorting(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer         obj  = (UIGridContainer)o;
            UIGridContainer.Sorting arg0 = (UIGridContainer.Sorting)ToLua.CheckObject(L, 2, typeof(UIGridContainer.Sorting));
            obj.sorting = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sorting on a nil value"));
        }
    }