The following code gives me this error:
Cannot convert from \'System.Collections.Generic.List\' to \'System.Collections.Generic.List\'.
I agree with Winston Smith's answer.
I just wanted to point out as an alternative (although this possibly isn't the best way to handle the situation) that while List does not derive from List, Customer[] does derive from Object[].
Therefore, it is possible to do this:
{
List customers = new List();
// ...
FillSmartGrid(customers.ToArray());
// ...
}
public void FillSmartGrid(object[] items)
{
}
Of course, the downside is that you're creating an array object just so you can pass it to this function.