/// <summary> /// 释放树型包所占用的资源 /// </summary> /// <param name="disposing">是否为终结。</param> protected virtual void Dispose(bool disposing) { if (disposing) { if (_entries != null) { Clear(); _entries = null; } if (_entryList != null) { _entryList.Dispose(); _entryList = null; } if (_comment == null) { _comment = null; } if (_attributes != null) { _attributes.Dispose(); _attributes = null; } GC.SuppressFinalize(this); //GC.Collect(0); //GC.Collect(); } }