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