Example #1
0
        public void Dispose()
        {
            if (builder != null)
            {
                builder.Dispose();
                builder = null;
            }

            for (int n = LineCount - 1; n >= 0; n--)
            {
                CodeLinePool.Dispose(ref lines[n]);
            }
        }
Example #2
0
 public void InsertAt(int index, string content)
 {
     lines = lines.InsertAt(index, CodeLinePool.Create(content, builder));
 }