Last active
November 6, 2015 11:40
-
-
Save wgv-zbonham/ca3c1cd565ee2cde5ed2 to your computer and use it in GitHub Desktop.
IDisposable is a developer convention
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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