Disposing a StringBuilder object
No, a StringBuilder is a purely managed resource. You should just get rid of all references to it. Everything else is taken care of by the garbage collector: StringBuilder sb = …; // … do work sb = null; // or simply let it go out of scope. In .NET, there’s no deterministic delete (like … Read more