Exemple #1
0
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 void IDisposable.Dispose()
 {
     if (conn == null)
     {
         return;
     }
     if (cost != null)
     {
         Marshal.FinalReleaseComObject(cost);
         cost = null;
     }
     Marshal.FinalReleaseComObject(conn);
     conn = null;
 }
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 void IDisposable.Dispose()
 {
     cost = null;
     conn = null;
 }