示例#1
0
        public void Dispose()
        {
            E.Dispose();
            N.Dispose();

            if (D != null)
            {
                D.Dispose();
            }

            if (P != null)
            {
                P.Dispose();
            }

            if (Q != null)
            {
                Q.Dispose();
            }

            if (Dmp1 != null)
            {
                Dmp1.Dispose();
            }

            if (Iqmp != null)
            {
                Iqmp.Dispose();
            }
        }
示例#2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             E?.Dispose();
             N?.Dispose();
             D?.Dispose();
             P?.Dispose();
             Q?.Dispose();
             Dmp1?.Dispose();
             Iqmp?.Dispose();
         }
         IsDisposed = true;
     }
 }