Oddur Magnusson

Object reference not set to an instance of a human being

April 2004 - Posts

VS Add-inn Idea : The Disposer!

For those looking for ideas for the VS-Add-inn contest

Don't know if VS add-ins would allow you to do this but I'd really like to see a add-inn that would do this. Each time you write:

ObjectThatIsIDisposable o = new ObjectThatIsIDisposable();

it would wrap it up in a using clause, rewriting it, so it would look like:

using (ObjectThatIsIDisposable o = new ObjectThatIsIDisposable())

{

<And place the cursor here>

}

I just love the using synthetic sugar !

Also, I'd really like to see a add-in that would allow me close all files currently open in VS, without closing the solution.

Posted: Apr 27 2004, 02:11 PM by oddurmag | with 5 comment(s)
Filed under:
More Posts