public static int TryRegisterCanvasElementForGraphicRebuild_s(IntPtr l) { int result; try { ICanvasElement element; LuaObject.checkType <ICanvasElement>(l, 1, out element); bool b = CanvasUpdateRegistry.TryRegisterCanvasElementForGraphicRebuild(element); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }