Thursday, July 9, 2009

How to Re factor a new feature in the Visual C# 2.0 IDE?

Assume you have a solution containing about 25 classes (well also assume that each class is in a separate source file that means 25 .cs files).


Suppose one class has a variable xyz, which you now want to rename to something more meaningful. In Visual Studio .Net 2003, what options did you have? You could do a find and replace for xyz (to rename it to something else, says username), but this would also rename variables like abcxyz to abcusername! You could of course choose the Find whole word option, but another problem this would also rename variables named xyz in other classes which you might not want to touch.





Read more on Re-factoring a new feature in the Visual C# 2.0 IDE at http://www.buzzycode.com/ShowArticles-id...


No comments:

Post a Comment