C# StringWriter Write(UInt32)

Description

StringWriter Write(UInt32) Writes the text representation of a 4-byte unsigned integer to the text string or stream.

Syntax

StringWriter.Write(UInt32) has the following syntax.


[CLSCompliantAttribute(false)]
public virtual void Write(
  uint value
)

Parameters

StringWriter.Write(UInt32) has the following parameters.

  • value - The 4-byte unsigned integer to write.

Returns

StringWriter.Write(UInt32) method returns

Example


using System;//w ww . j a  va  2  s .co  m
using System.Globalization;
using System.IO;

class StrWriter
{
    static void Main()
    {
        StringWriter strWriter = new StringWriter();

        strWriter.Write((UInt32)1);
        
        Console.WriteLine(strWriter.ToString());
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter