public static bool IsBooleanType (Type type) { ArgumentUtility.CheckNotNull ("type", type); return type == typeof (bool) || type == typeof (bool?); }