Skip to content

Instantly share code, notes, and snippets.

@wgv-zbonham
Last active November 6, 2015 11:40
Show Gist options
  • Save wgv-zbonham/ca3c1cd565ee2cde5ed2 to your computer and use it in GitHub Desktop.
Save wgv-zbonham/ca3c1cd565ee2cde5ed2 to your computer and use it in GitHub Desktop.
IDisposable is a developer convention
public class Trash : IDisposable
{
public void Dispose()
{
Console.WriteLine ("Goodbye, cruel world.");
}
}
class Program
{
public static void Main (string[] args)
{
var trash = new Trash();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment