This pattern is helpful when you want to do something temporarily and then restore some state. This was inspired by the System.Disposable.Disposable() class defined in System.Core.dll distributed by the Reactive Extensions for .NET (Rx) library.
36 people like thisPosted: 13 years ago by Cesar Mendoza
This sample illustrates how to use an IDisposable inside an object, as well as a simple use of object expression
4 people like thisPosted: 12 years ago by nicolas2
Declares an event combinator 'Event.using' that automatically releases resources allocated by a previous event occurence. Each event occurence creates a value using a function specified by the user and automatically calls 'Dispose' when generating a new value.
2 people like thisPosted: 13 years ago by Tomas Petricek
A fun little trick.
3 people like thisPosted: 10 years ago by BR