protected bool IsInArray(char c, char[] chars) { foreach (char ch in chars) { if (c == ch) return true; } return false; }