namespace Update.Core { partial class Updater { /// /// 释放更新包枚举器 /// protected virtual void DisposeAvaliables() { if (this.m_Avaliables != null) { this.m_Avaliables.Dispose(); this.m_Avaliables = null; } } /// /// 释放 WebClient /// protected virtual void DisposeClient() { if (this.m_Client != null) { this.m_Client.Dispose(); this.m_Client = null; } } /// /// 释放资源 /// /// 释放托管资源为true,否则为false protected override void Dispose(bool disposing) { this.DisposeAvaliables(); this.DisposeClient(); } } }