public void WriteLines(string value)
 {
     if (value.IndexOf('\n') < 0)
     {
         WriteLine(value);
     }
     else
     {
         using (var line = new StringReader(value).ReadLines())
             while (line.MoveNext())
                 WriteLine(line.Current);
     }
 }