In .NET, both array and list have Enumerable as ancestor, so a method that accept Enumerable as an argument can receive both array and list as its argument. I wonder if ther
They don't have a common ancestor, however, there are methods to cast between the two types as needed -
So you could provide an overloaded method to cast to a common type - i.e.
public void doAll(MyType[] array) {
doAll(Arrays.asList(array));
}
public void doAll(List list) {
//... process List here.
}