public static bool checkIsValue(string type, params string[] types) { foreach (string t in types) if (t == type) return true; return false; }