.NET General,Development Tips - The Bumpy Blog
in

dotnet.org.za

South African .NET Developer Portal

The Bumpy Blog

Bumpy's Bedside Story

Browse by Tags

All Tags » .NET General » Development Tips (RSS)
Sorry, but there are no more tags available to filter with.
  • IsNumeric in C#, WHY NOT?

    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...
Powered by Community Server (Commercial Edition), by Telligent Systems