Oddur MagnussonObject reference not set to an instance of a human beingVS Add-inn Idea : The Disposer!- April 27, 2004 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.http://weblogs.asp.net/omagnusson/archive/2004/04/27/121012.aspx |