Example #1
0
 public IEnumerable <T> Read()
 {
     using (var sr = new StreamReader(fileName))
     {
         var value = "";
         while ((value = sr.ReadLine()) != null)
         {
             T model = provider.Deserialize(value);
             yield return(model);
         }
     }
 }