🔥 Apps, books, system as a service, podcast and more



IsWholeNumber

IsWholeNumber

Verifica se o texto representa um número inteiro válido. Caso o texto informado seja um número inteiro, (apenas caracteres entre '0' e '9'), retorna true, do contrário retorna false.


 

private static bool IsWholeNumber(string strNumber) {

         return !new Regex("[^0-9]").IsMatch(strNumber);

      }

 


Espero ter ajudado.
Mauricio Junior
www.mauriciojunior.org

Sign up to our newsletter

Receive our latest updates about programming languages, software, database, books, ebooks, classes, jobs and more.

Top