private bool KeyExists(string keyName) { foreach (Index i in Indexes) if (String.Compare(i.Name, keyName, true) == 0) return true; return false; }