The find/replace method is OK but Resharper can go one better. Consider these three instantiations ofButton

_button1 = new System.Windows.Forms.Button();
_button2 = new Button();
_button3 = new DumbAlias.Button();

So its likely you'll find all instances declared like _button1. If you remember you'll look for instances like _button2. It's likely you'll miss _button3.

Use Resharper to find them all in one go. Resharper -> Find -> Search With Pattern

Then enter the following pattern




Click Find and you should see



Now if that doesn't excite you what does ?!

Reply via email to