public static IEnumerable <T> Read <T>(StreamReader stream, CsvFileDescription fileDescription) where T : class, new() { FileDataAccess dataAccess = new FileDataAccess(stream, fileDescription); return(dataAccess.ReadData <T>(null)); }
public static IEnumerable <T> Read <T>(string fileName, CsvFileDescription fileDescription) where T : class, new() { FileDataAccess dataAccess = new FileDataAccess(null, fileDescription); return(dataAccess.ReadData <T>(fileName)); }