Examples

using ( DisposeAction.Create( () => Console.WriteLine( "Cleanup!" ) ) ) { // Do work } // "Cleanup!" is printed here
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.