private static void ActionTextReaderLine(TextReader textReader, TextWriter textWriter, StringUtils.ActionLine lineAction) { bool flag = true; while (true) { string str = textReader.ReadLine(); string str1 = str; if (str == null) { break; } if (flag) { flag = false; } else { textWriter.WriteLine(); } lineAction(textWriter, str1); } }
private static void ActionTextReaderLine(TextReader textReader, TextWriter textWriter, StringUtils.ActionLine lineAction) { bool flag = true; string line; while ((line = textReader.ReadLine()) != null) { if (!flag) { textWriter.WriteLine(); } else { flag = false; } lineAction(textWriter, line); } }