Created
September 6, 2011 16:20
-
-
Save njonsson/1198041 to your computer and use it in GitHub Desktop.
http://blog.nilsjonsson.com/post/9880142753/disposing-of-c-objects-that-should-implement-idisposable
This file contains hidden or 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
// Unfortunately, this isn't possible. | |
using (var sim = new OpenNETCF.Phone.Sim.Sim()) | |
{ | |
// Use the 'sim' variable ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment