internal static bool IsPredefinedType(this Type type) { foreach (Type t in PredefinedTypes) { if (t == type) { return true; } } return false; }