C# StringWriter Write(Int32)
Description
StringWriter Write(Int32)
Writes the text representation
of a 4-byte signed integer to the text string or stream.
Syntax
StringWriter.Write(Int32)
has the following syntax.
public virtual void Write(
int value
)
Parameters
StringWriter.Write(Int32)
has the following parameters.
value
- The 4-byte signed integer to write.
Returns
StringWriter.Write(Int32)
method returns
Example
/* ww w.java2 s . c om*/
using System;
using System.Globalization;
using System.IO;
class StrWriter
{
static void Main()
{
StringWriter strWriter = new StringWriter();
strWriter.Write(123);
Console.WriteLine(strWriter.ToString());
}
}
The code above generates the following result.