That excites me J   thanks Wallace!

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Wallace Turner
Sent: Friday, 29 April 2011 4:12 PM
To: ozDotNet
Subject: Re: Is it possible to override a class?

 

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 ?!

<<image001.png>>

<<image002.png>>

<<image003.png>>

Reply via email to