StringBuilder SB = "HEllo World";Note: both the help with Visual C# 2008 Express Edition and the Microsoft website mention a Chars property of StringBuilder that you should use. That's confusing as it doesn't exist as the word Chars. You just use [] to access the characters in a StringBuilder class in the way I have shown. If you want to see what methods and properties are available in any class in the IDE, right click on the class name and click Go To Definition.
SB[1]='e'; // Changes it to Hello World
If you view the definition you'll see all 6 overloads for constructing a StringBuilder, Three properties (Capacity, Length and MaxCapacity), the default indexer (that is what makes this line work- SB[1]='e'; ), 19 overloads for Append etc, as well as Replace and Inserts.
This is a very handy class. Even the ToString() function is overloaded so you can just copy a number of characters from a starting position.
On the next page - Comparing Strings in C#

