Browse by Tags
All Tags »
.NET General »
Development Tips (
RSS)
Sorry, but there are no more tags available to filter with.
-
|
This is something that has bothered me for a long while now. Why doesn't C# have a IsNumeric(string num) function like VB.NET? I have used every kind of IsNumeric code you van think of... This is what I started with. public bool IsNumeric( string s) { try { Int32.Parse(s); } catch { return false ; } return true ; } But we all no the unspoken rule, NEVER use try, catch for functionality... So I tried this. internal static bool IsNumeric( string numberString) { char [] ca = numberString.ToCharArray...
|