Implementing the Decorator pattern with Resharper is a snap.
This post shows how this is so easy with interfaces.
A few things to keep in mind, though, is when inheriting and decorating a class and you are intending to override its virtual properties, delegating property calls to the inner class (thereby leaving the real class with default values in fields).
1. Resharper by default doesn't declare 'override' on these overriden virtual members. You'll get a warning asking if you intended 'new' but not a compile-time error so members will be 'null' or default(whatever) at runtime. This can be confusing.
2. If you have used Resharper for Equals()/HashCode() generation be sure to change the base class's implementation to point not at the fields for value checking but rather the (potentially overriden) properties. That way the derived class will participate in these checks and avoid any NullReference exceptions.
Mike
I can't stand 'beep','bling','da-da-da-dunt' while I am working at my computer. Maybe my musical background, but I much prefer silence.
But when I turn sounds to 'Off' in my profile (XP) I now am getting an annoying BEEP every time I get email from Outlook and so on. This one is coming from the actual machine.
So here's how to kill that useless BEEP:
My Computer/Hardware/Device Manager
Go to 'View' and select 'Show Hidden Devices' if it isn't already.
Now in your list you should see 'Non-Plug and Play Drivers'.
Find 'Beep' in the list, right-click and disable.
Now no more silly sounds.
Mike