Create StringBuilder class from the specified substring and capacity.
using System;
using System.Text;
public class App
{
static void Main()
{
string initialString = "Initial string for stringbuilder.";
int startIndex = 0;
int substringLength = 14;
int capacity = 255;
StringBuilder stringBuilder = new StringBuilder(initialString, startIndex, substringLength, capacity);
}
}
Related examples in the same category