text: public int GetNameIndex(String name){int retval = -1;for (int k = 0; k < names.Count; k++){String nameName = GetNameName(k);if (nameName.Equals(name, StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}