private int CaseInsensitiveSearch(string key) { // Hope not to have many attributes when the tag is not a server tag... for (int i = 0; i < keys.Count; i++){ if (0 == String.Compare ((string) keys [i], key, true)) return i; } return -1; }