File Stream C#

using System.Collections.Generic;
    public static class IOUtil
    {
        public static IEnumerable EnumLines(System.IO.StreamReader fp)
        {
            while (!fp.EndOfStream)
            {
                var line = fp.ReadLine();
                yield return line;
            }
        }
    }