Exemplo n.º 1
0
 public static async Task WriteLinesAsync(this TextWriter writer, IEnumerable <string> lines)
 {
     writer.CheckArgumentNull(nameof(writer));
     lines.CheckArgumentNull(nameof(lines));
     foreach (var line in lines)
     {
         await writer.WriteLineAsync(line).ConfigureAwait(false);
     }
 }
Exemplo n.º 2
0
 public static void WriteLines(this TextWriter writer, IEnumerable <string> lines)
 {
     writer.CheckArgumentNull(nameof(writer));
     lines.CheckArgumentNull(nameof(lines));
     foreach (var line in lines)
     {
         writer.WriteLine(line);
     }
 }