示例#1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }

            if (m_Connection != null && m_Connection.Handle > 0 && DisposeConnection)
            {
                m_Connection.Dispose();
                m_Connection = null;
            }

            base.Dispose(disposing);
        }
示例#2
0
 public void Dispose()
 {
     if (this.PollTimer != null)
     {
         this.PollTimer.Stop();
         this.PollTimer.Dispose();
         this.PollTimer = null;
     }
     if (m_DataBase != null)
     {
         m_DataBase.Dispose();
         m_DataBase = null;
     }
     GC.SuppressFinalize(this);
 }