C# StringBuilder Append(Int64)
Description
StringBuilder Append(Int64)
Appends the string representation
of a specified 64-bit signed integer to this instance.
Syntax
StringBuilder.Append(Int64)
has the following syntax.
public StringBuilder Append(
long value
)
Parameters
StringBuilder.Append(Int64)
has the following parameters.
value
- The value to append.
Returns
StringBuilder.Append(Int64)
method returns A reference to this instance after the append operation has completed.
Example
Appends the string representation of a specified 64-bit signed integer to this instance.
using System;/*from w ww . j a v a 2 s.co m*/
using System.Text;
class Sample
{
public static void Main()
{
System.Text.StringBuilder sb = new
System.Text.StringBuilder("The range of a 64-bit integer: ");
sb.Append(Int64.MinValue).Append(" to ").Append(Int64.MaxValue);
Console.WriteLine(sb);
}
}
The code above generates the following result.