private IEnumerable <T> import(int rowCount = -1) { int rowNbr = 1; var rows = _importFile.GetRecords(); if (rowCount > 0) { rows = rows.Take(rowCount); } foreach (var row in rows) { T model = new T(); foreach (var impFld in ImportFields) { impFld.Import(model, row, rowNbr); } rowNbr++; yield return(model); } _importFile.Reset(); }