Clear C# StringBuilder

Many .NET developers are baffled by the lack of a “Clear” method in the StringBuilder class.  For example, if you are using a StringBuilder in a loop, you may want to clear its contents at the beginning of each loop. Options to Clear a StringBuilder It turns out there are two common ways to clear … Continue reading Clear C# StringBuilder