Clear

public static void Clear(this StringBuilder sb)
{
    sb.Length = 0;
}
Example:
StringBuilder sb = new StringBuilder();
//...
sb.Clear();

Description

clear the contents of a StringBuilder object

Details

Double click on the code to select all.

 

;