Marco Martin <ma**********@sympatico.ca> wrote:
try this, it might not be the best solution but it works;
public bool IsInteger(Char theValue)
{
try
{
Convert.ToInt32(theValue);
return true;
}
catch
{
return false;
}
} //IsInteger
No it doesn't - Convert.ToInt32(char) doesn't do what you think it
does. For instance, try this:
using System;
public class Test
{
static void Main()
{
Console.WriteLine (Convert.ToInt32('A'));
}
}
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too