views:

8

answers:

0

Im doing some refactoring on a large project and have come across a few instances of method/property duplication.

For instance - a 'base page' class with a UserName property (the old property) that still has some usage, and then a user class with the same UserName property (the 'new' property).

I want to update all existing code that calls the base page UserName property to the User.UserName property then i can safely delete the old property.

Ive read through the refactoring documentation and the only one that comes close is the safe delete option - however i dont get the opportunity to update existing calls before it whips out my old property, but it does warn me about usage/existing calls before this.

I assume im using the right feature but experiencing a bug at the same time, or am i missing something?

Im using vs2010 btw...

related questions