/ Published in: C#
isNumber string extension method for testing strings.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static class StringExtensions { public static bool isNumber(this String str) { double temp; return double.TryParse(str, out temp); } }