Свойство Rows
определяется как TableRowCollection Rows {get;}
public sealed class TableRowCollection : IList, ICollection, IEnumerable
Это не IEnumerable<TableRow>
, поэтому это просто IEnumerable
, поэтому оно не может вывести тип как TableRow
.
Вы можете сделать это вместо:
public IEnumerable<Customer> TableToCustomers(Table table)
{
return table.Rows.Cast<TableRow>().Select(RowToCustomer);
}