/// <summary> /// Dispose, indicating you are done with this builder. /// </summary> void IDisposable.Dispose() { if (_borrowedBuilder != null) { ReuseableStringBuilderFactory.Release(_borrowedBuilder); _borrowedBuilder = null; _capacity = -1; } }
public void Dispose() { if (_borrowedBuilder != null) { ReuseableStringBuilderFactory.Release(this); _borrowedBuilder = null; _capacity = -1; } }