public static int ID(string name) { for (int i=0; i < Names.Length; i++) { if (name.Equals(Names[i])) { return i; } } return 0; } }