Is String Numeric - CSharp System

CSharp examples for System:String Parse

Description

Is String Numeric

Demo Code


using System.Text;
using System.IO;/*from  w w w .  j  a  v a2s  . co  m*/
using System.Globalization;
using System.Collections.Generic;
using System;

public class Main{
        public static bool IsNumeric(this string value)
        {
            var result = 0d;
            return double.TryParse(value, out result);
        }
}

Related Tutorials