StringBuilder Insert()
using System;
using System.Text;
class Test {
public static void Main() {
StringBuilder myStringBuilder = new StringBuilder("asdfasdfadsf");
myStringBuilder.Insert(6, "friends, ");
myStringBuilder.Insert(2, "Romans, ", 3);
Console.WriteLine("myStringBuilder = " + myStringBuilder);
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
|