BlipFace.View.Controls.Pager.ValidateCurrentPageIndex C# (CSharp) Méthode

ValidateCurrentPageIndex() private static méthode

private static ValidateCurrentPageIndex ( object value ) : bool
value object
Résultat bool
        private static bool ValidateCurrentPageIndex(object value)
        {
            int val = (int) value;
            if (val < 0)
            {
                return false;
            }

            return true;
        }