C# StringBuilder Append(UInt32)

Description

StringBuilder Append(UInt32) Appends the string representation of a specified 32-bit unsigned integer to this instance.

Syntax

StringBuilder.Append(UInt32) has the following syntax.


[CLSCompliantAttribute(false)]
public StringBuilder Append(
  uint value
)

Parameters

StringBuilder.Append(UInt32) has the following parameters.

  • value - The value to append.

Returns

StringBuilder.Append(UInt32) method returns A reference to this instance after the append operation has completed.

Example


//from w  w  w . ja va 2 s.  co  m
using System;
using System.Text;
using System.Globalization;

class Sample 
{
    public static void Main() 
    {
        System.Text.StringBuilder sb = new 
                    System.Text.StringBuilder("The range of a 32-bit unsigned integer: ");
        sb.Append(UInt32.MinValue).Append(" to ").Append(UInt32.MaxValue);
        Console.WriteLine(sb);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Text »




ASCIIEncoding
Encoding
EncodingInfo
StringBuilder
UnicodeEncoding
UTF8Encoding