Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #region IDisposable Implementation
  2.  
  3. private bool disposed;
  4. public void Dispose()
  5. {
  6. Dispose(true);
  7. GC.SuppressFinalize(this);
  8. }
  9.  
  10. protected virtual void Dispose(bool disposing)
  11. {
  12. if (!this.disposed && disposing)
  13. {
  14. // Dispose of all resources here.
  15. }
  16. this.disposed = true;
  17. }
  18.  
  19. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement