0 Comments
This is the cleanest way to check a string for a number. I was looking for a nice way to do this and I came across this one:

        public bool IsNumeric(string text)
        {
            int n;
            return int.TryParse(text, out n);
        }

Really nice and clean solution!
Post comment