.NET Question ( just a thought .. )

Another neat feature that I would like to see ..but it would have to do with the .NET Framework, not the ReSharper IDE ..I just want opinions on this. I plan to propose it to the .NET 2.0 Newsgroups soon... is "Temporary" code, using a temporary keyword ... you know how when you're writing a lot of stuff that you need to test, you have to always go back and keep cleaning up all your 'debugging' code? I think it would be awsome if you could append a 'temporary' keyword to things and when you are done, just have a command in the IDE that goes through and flushes out all temporary code ...so like the following ..

temporary
{
// ....
}

anything in the temporary block would run as normal ...but when you selected to do so in the IDE, it would just delete it.. no worries with having to clean up all your debugging code! You could even have a !temporary{ } block within the code that ran inline with your temporary code what do you think? think an idea like that would fly with Microsoft?

4 comments
Comment actions Permalink

Hello Derek,

DT> temporary
DT> {
DT> // ....
DT> }
Why not use #region temporary and then use regular expressions to remove/search/change
these?


0
Comment actions Permalink

Yeah it would work, I'm just saying it would be a nice feature to have built into the framework.

0
Comment actions Permalink

Hello Derek,

At which point you'd be embedding functions of an IDE into the language spec.
That doesnt seem like a good idea.

--
Matt Berther
http://www.mattberther.com

Yeah it would work, I'm just saying it would be a nice feature to have
built into the framework.



0
Comment actions Permalink

Indeed. That is probably true.

0

Please sign in to leave a comment.