C# StringBuilder Insert(Int32, UInt64)
Description
StringBuilder Insert(Int32, UInt64)
Inserts the string
representation of a 64-bit unsigned integer into this instance at the specified
character position.
Syntax
StringBuilder.Insert(Int32, UInt64)
has the following syntax.
[CLSCompliantAttribute(false)]/*from w ww .jav a 2s . com*/
public StringBuilder Insert(
int index,
ulong value
)
Parameters
StringBuilder.Insert(Int32, UInt64)
has the following parameters.
index
- The position in this instance where insertion begins.value
- The value to insert.
Returns
StringBuilder.Insert(Int32, UInt64)
method returns A reference to this instance after the insert operation has completed.
Example
/* w w w. j a va 2s.c o m*/
using System;
using System.Text;
class Sample
{
public static void Main()
{
StringBuilder sb = new StringBuilder("from java2s.com");
sb.Insert(3, 123);
Console.WriteLine(sb.ToString());
}
}
The code above generates the following result.