Refactor! Pro goodness : Safe rename

Renames a non-private method or property in the class in a manner that does not break code in other assemblies which is dependent upon the old name.

Do I need say more? Perhaps a picture that says more than a thousand words… I wanted to rename my WriteDocumentElements method and pressed ctrl-~ in Visual Studio 2005 with Refactor! Pro installed.

 

Technorati tags:

You may also like...

3 Responses

  1. And then you manually change NewWriteDocumentElements to a more useful name? Or am I missing the point here 🙂

  2. Hahahaha, indeed it is! 🙂

    The green bars are there so you’ll immediatly notice where the name is referenced. The shift-alt-f12 from your last article 😉

    When you change one green element, all elements change with it. And it doesn’t matter which element you change. Also they keep active and linked, until you press [Enter]. Pressing [ctrl]+[enter] will disconnect only one link.

    A bit better than the Visual Studio 2005 refactoring options, but I don’t want to start another bitslapping 😉

  3. One thing worth mentioning is the fact that Refactor! Pro is a DevExpress tool.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.