How to Clear stringbuilder content in c#

By | November 4, 2017

How to Clear stringbuilder content in c#

Suppose we have following stringbuilder object,

StringBuilder stringBuilder = new StringBuilder();

Just use Clear method on stringbuilder object to clear stringbuilder content.

stringbuilder.Clear();