Exemplo n.º 1
0
 /// <summary>
 /// 初化 <see cref="SpeedDataTable"/> 对象。
 /// </summary>
 protected virtual void Initialize()
 {
     _IsDisposed = false;
     _Columns    = new SpeedDataColumnCollection(this);
     _Columns.DataColumnAdded   += DataColumns_DataColumnAdded;
     _Columns.DataColumnRemoved += DataColumns_DataColumnRemoved;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 释放 <see cref="SpeedDataTable"/> 对象所占用的资源。
 /// </summary>
 /// <param name="disposing">手动调用则为 true,由对象终结器调用时为 false</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _Columns.Clear();
         _Columns  = null;
         TableName = null;
         this.Clear();
     }
     _IsDisposed = true;
     GC.Collect();
 }