Esempio n. 1
0
        public static bool ReadLineIsNotEndSynchronous(TextReader textReader, out string line)
        {
            line = textReader.ReadLine();

            var hasLine = !TextReaderHelper.IsEndOfTextLine(line);

            return(hasLine);
        }
Esempio n. 2
0
        public static async Task <WasFound <string> > ReadLineIsNotEnd(TextReader textReader)
        {
            var line = await textReader.ReadLineAsync();

            var hasLine = !TextReaderHelper.IsEndOfTextLine(line);

            var wasFound = WasFound.From(hasLine, line);

            return(wasFound);
        }