Example #1
0
 /// <summary>
 /// Release the resources held by this object, and close the cursor if
 /// it is still open.
 /// </summary>
 public void Dispose()
 {
     try {
         if (isOpen)
         {
             Close();
         }
     } catch {
         /*
          * Errors here are likely because our dbc has been closed out
          * from under us.  Not much we can do, just move on.
          */
     }
     dbc.Dispose();
     GC.SuppressFinalize(this);
 }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     _context.Dispose();
 }