Return to Snippet

Revision: 35527
at November 10, 2010 02:17 by gyurisc


Initial Code
public static class StringExtensions
    {
        public static bool isNumber(this String str)
        {
            double temp;
            return double.TryParse(str, out temp);
        }
    }

Initial URL

                                

Initial Description
isNumber string extension method for testing strings.

Initial Title
isNumber extension method for string in C#

Initial Tags
Net, c#

Initial Language
C#