C# StringBuilder Append(UInt64)

Description

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

Syntax

StringBuilder.Append(UInt64) has the following syntax.


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

Parameters

StringBuilder.Append(UInt64) has the following parameters.

  • value - The value to append.

Returns

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

Example


//from  w w w.  j a  va2s  .c o 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 64-bit unsigned integer: ");
        sb.Append(UInt64.MinValue).Append(" to ").Append(UInt64.MaxValue);
        Console.WriteLine(sb);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Text »




ASCIIEncoding
Encoding
EncodingInfo
StringBuilder
UnicodeEncoding
UTF8Encoding