IsBoolean

public static bool IsBoolean(this Type type)
{
	return type.Equals(typeof(Boolean));
}
Example:
Type type = (false).GetType();
bool isString = type.IsBoolean();

Description

Checks whether the type is Boolean.

Details

Double click on the code to select all.