Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }