C# StringWriter Write(Char)
Description
StringWriter Write(Char)
Writes a character to the string.
Syntax
StringWriter.Write(Char)
has the following syntax.
public override void Write(
char value
)
Parameters
StringWriter.Write(Char)
has the following parameters.
value
- The character to write.
Returns
StringWriter.Write(Char)
method returns
Example
using System;/* w w w.j ava 2 s. c o m*/
using System.Globalization;
using System.IO;
class StrWriter
{
static void Main()
{
StringWriter strWriter = new StringWriter();
strWriter.Write('.');
Console.WriteLine(strWriter.ToString());
}
}
The code above generates the following result.