Actually in this scenario I'd just do a search and replace too. 

However Resharper can help here and what I typically do in this situation is 
select a usage of the class I want to replace (e.g. "Button") and use the "find 
usages" feature to find all instances and I can see how the class is used, then 
use search and replace to change to the new class (Button -> MyButton), then 
refresh the find usages to ensure I got them all. 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Anthony
Sent: Friday, 29 April 2011 11:09 AM
To: 'ozDotNet'
Subject: RE: Is it possible to override a class?

How can I do a replace of all buttons with my inherited version using
resharper?  I have resharper but would have no idea how to do this?  I
assume just a search and replace or is it more clever?

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Noon Silk
Sent: Friday, 29 April 2011 12:53 PM
To: ozDotNet
Subject: Re: Is it possible to override a class?

> Noon Silk,
>
> I've gathered you dislike Resharper from this post and previous posts.
> Are you using an alternative? (eg CodeRush)
>
> I think you have stuck yourself in a corner where you've said 'i don't
> like it' and wont go back on your position even if it can cure cancer.
>
> I would like to show you around it sometime. All the things that annoy
> you about it (code completion, brace insertion etc) can be disabled and
> then you can properly try it without it "getting in the way"
>
> I'm not trying to start a war so lets not go down that path; just a warm
> invitation if you choose.

:) You make a very kind offer. I know it doesn't come across in email very
well
but I was joking really. I might evaluate resharper one day, but at the
moment
I don't do enough programming to warrant it. Thank you though :)

I promise, I won't make stupid jokes about R# here again without having
trialed
it (recently, I used it years ago now) for myself.

-- 
Noon Silk

http://dnoondt.wordpress.com/  (Noon Silk) | http://www.mirios.com.au:8081 >

Fancy a quantum lunch?
http://www.mirios.com.au:8081/index.php?title=Quantum_Lunch

"Every morning when I wake up, I experience an exquisite joy - the joy
of being this signature."



This email is intended for the named recipient only.  The information it 
contains may be confidential or commercially sensitive.  If you are not the 
intended recipient you must not reproduce or distribute any part of this email, 
disclose its contents to any other party, or take any action in reliance on it. 
 If you have received this email in error, please contact the sender 
immediately and delete the message from your computer.

Reply via email to