コード例 #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;
 }
コード例 #2
0
ファイル: NetworkConnection.cs プロジェクト: tajbender/Vanara
 /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
 void IDisposable.Dispose()
 {
     cost = null;
     conn = null;
 }