Is Char Digit - CSharp System

CSharp examples for System:Char

Description

Is Char Digit

Demo Code


using System.Globalization;
using System;/*from   w  ww .java  2  s.  c om*/

public class Main{
        public static bool IsDigit(char c)
        {
            return ((c >= '0') && (c <= '9'));
        }
}

Related Tutorials