DefconDotNet

Untitled

Aug 29th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.  
  2.         public void Dispose()
  3.         {
  4.             Dispose(true);
  5.             GC.SuppressFinalize(this);
  6.         }
  7.  
  8.         public void Dispose(bool disposing)
  9.         {
  10.             if (disposing)
  11.             {
  12.                 _controller.Dispose();
  13.             }
  14.         }
  15.  
  16.         ~DashboardControllerTests()
  17.         {
  18.             Dispose(false);
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment