OpenRA.StreamExts.ReadAllLines C# (CSharp) Method

ReadAllLines() public static method

public static ReadAllLines ( this s ) : IEnumerable
s this
return IEnumerable
        public static IEnumerable<string> ReadAllLines(this Stream s)
        {
            string line;
            using (var sr = new StreamReader(s))
                while ((line = sr.ReadLine()) != null)
                    yield return line;
        }