示例#1
0
        public static bool ReadLineIsNotEndSynchronous(TextReader textReader, out string line)
        {
            line = textReader.ReadLine();

            var hasLine = !TextReaderHelper.IsEndOfTextLine(line);

            return(hasLine);
        }
示例#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);
        }
        public static Task <WasFound <string> > ReadLineIsNotEnd(this TextReader textReader)
        {
            var output = TextReaderHelper.ReadLineIsNotEnd(textReader);

            return(output);
        }
        public static bool ReadLineIsNotEndSynchronous(this TextReader textReader, out string line)
        {
            var output = TextReaderHelper.ReadLineIsNotEndSynchronous(textReader, out line);

            return(output);
        }