IsInteger

public static bool IsInteger(this Type type)
{
	return type.Equals(typeof(int));
}
Example:
Type type = (1).GetType();
bool isString = type.IsInteger();

Description

Checks whether the type is integer.

Details

Double click on the code to select all.

 

;