Is Char Numeric - CSharp System

CSharp examples for System:Char

Description

Is Char Numeric

Demo Code

// Copyright (c)2008-2011 Mark II Software, LLC.  All Rights Reserved.
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from  w w  w  .j  a  va2 s.co m

public class Main{
        public static bool IsNumeric(this char c)
        {
            byte by = 0;
            return (Byte.TryParse(c.ToString(), out by));
        }
}

Related Tutorials