Skip to content

Instantly share code, notes, and snippets.

View remcok's full-sized avatar
💭
Typing...

Remco Koedoot remcok

💭
Typing...
  • Almere, Netherlands
View GitHub Profile
@sandord
sandord / gist:400557
Last active December 1, 2022 14:49
Disposable pattern
public class MyClass : IDisposable
{
/// <summary>
/// Finalizes an instance of the <see cref="MyClass"/> class. Releases unmanaged
/// resources and performs other cleanup operations before the current instance is
/// reclaimed by garbage collection.
/// </summary>
~MyClass()
{
this.Dispose(false);