コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             ConnectionClosed();
             if (db2Conn != null)
             {
                 db2Conn.RemoveCommand(this);
                 db2Conn = null;
             }
         }
         if (statementParametersMemory != IntPtr.Zero)
         {
             Marshal.FreeHGlobal(statementParametersMemory);
             statementParametersMemory = IntPtr.Zero;
         }
     }
     base.Dispose(disposing);
     disposed = true;
 }