System.IO.Stream.WriteLine()

Here are the examples of the csharp api System.IO.Stream.WriteLine() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : Extensions.cs
with MIT License
from huanzi-qch

public static void WriteLine(this Stream fs, string line)
        {
            var buff = line.GetASCIIBytes();
            fs.Write(buff, 0, buff.Length);
            fs.WriteLine();
            VariableSizedBufferPool.Release(buff);
        }

19 Source : Extensions.cs
with MIT License
from huanzi-qch

public static void WriteLine(this Stream fs, string format, params object[] values)
        {
            var buff = string.Format(format, values).GetASCIIBytes();
            fs.Write(buff, 0, buff.Length);
            fs.WriteLine();
            VariableSizedBufferPool.Release(buff);
        }