
Re: Refactoring: create delegate methods
The best way to check this out is to see it in action in Eclipse (some java project). But here's a short description for Visual Studio
http://stackoverflow.com/questions/2679 ... gate-methoMethod delegation is mostly used to avoid the problem where the language allows you to extend only one class. If you want to extend more classes, then you just create fields with these classes and create delegates.
If you still don't get the idea here's a short description for my screenshots above: imagine that class PhoneDTO (what was right clicked) has the following methods listed in Delegate Methods box. You just choose methods (with checkboxes) you want to delegate and they are generated automatically.