C# StringWriter WriteLine(Boolean)
Description
StringWriter WriteLine(Boolean)
Writes the text representation
of a Boolean value followed by a line terminator to the text string or stream.
Syntax
StringWriter.WriteLine(Boolean)
has the following syntax.
public virtual void WriteLine(
bool value
)
Parameters
StringWriter.WriteLine(Boolean)
has the following parameters.
value
- The Boolean value to write.
Returns
StringWriter.WriteLine(Boolean)
method returns
Example
// ww w .j a va 2s.co m
using System;
using System.Globalization;
using System.IO;
class StrWriter
{
static void Main()
{
StringWriter strWriter = new StringWriter();
strWriter.WriteLine(true);
Console.WriteLine(strWriter.ToString());
}
}
The code above generates the following result.