Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (m_icollector != null)
         {
             m_icollector.Dispose();
             m_icollector = null;
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// Dispose of the backing store before garbage collection.
        /// </summary>
        /// <param name="disposing">
        /// <see langword="true"/> if disposing; otherwise, <see langword="false"/>.
        /// </param>
        protected virtual void Dispose(bool disposing)
        {
            if (!IsDisposed)
            {
                if (disposing)
                {
                    // Dispose managed resources.
                    if (m_icollector != null)
                    {
                        m_icollector.Dispose();
                        m_icollector = null;
                    }
                }

                // Dispose unmanaged resources.

                // Note disposing has been done.
                IsDisposed = true;
            }
        }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (m_icollector != null)
         {
             m_icollector.Dispose();
             m_icollector = null;
         }
         if (m_ecollector != null)
         {
             m_ecollector.Dispose();
             m_ecollector = null;
         }
         if (CollectTimer != null)
         {
             CollectTimer.Dispose();
             CollectTimer = null;
         }
     }
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (m_icollector != null)
         {
             m_icollector.Dispose();
             m_icollector = null;
         }
         if (m_InvoinceSet != null)
         {
             m_InvoinceSet.Dispose();
             m_InvoinceSet = null;
         }
         if (m_invoiceTbl != null)
         {
             m_invoiceTbl.Dispose();
             m_invoiceTbl = null;
         }
         if (m_lineitemTbl != null)
         {
             m_lineitemTbl.Dispose();
             m_lineitemTbl = null;
         }
         if (m_customerTbl != null)
         {
             m_customerTbl.Dispose();
             m_customerTbl = null;
         }
         if (m_partnerTbl != null)
         {
             m_partnerTbl.Dispose();
             m_partnerTbl = null;
         }
     }
 }