Skip to content

Instantly share code, notes, and snippets.

@jessebarocio
Created January 28, 2015 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessebarocio/23a7bd980bc52e3184c8 to your computer and use it in GitHub Desktop.
Save jessebarocio/23a7bd980bc52e3184c8 to your computer and use it in GitHub Desktop.
#region IDisposable Implementation
private bool disposed;
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (!this.disposed && disposing)
{
// Dispose of all resources here.
}
this.disposed = true;
}
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment