If you want to check for an Integer, this will do it:
public bool IsInteger(double number)
{
return (number % 1 == 0);
}
If you additionally want to check if the number could be converted into an Int32:
public bool IsInt32(double number)
{
return (number % 1 == 0) && number >= Int32.MinValue && number <= Int32.MaxValue;
}