B Bjorn Abelli Dec 6, 2004 #3 ... How come String[] does not have an indexOf method ? Click to expand... In short, if *all* useful methods for any type of array would be in *all* types of arrays' protocols, there would be very many methods around... Instead there's a useful class "Array", with many such methods applicable to all types of arrays, e.g: int index = Array.IndexOf(array, value}; // Bjorn A
... How come String[] does not have an indexOf method ? Click to expand... In short, if *all* useful methods for any type of array would be in *all* types of arrays' protocols, there would be very many methods around... Instead there's a useful class "Array", with many such methods applicable to all types of arrays, e.g: int index = Array.IndexOf(array, value}; // Bjorn A