Eclipse allows us to define a class as:
interface MyInterface {
void methodA();
int methodB();
}
class A : MyInterface {
MyInterface myInterface;
}
and then with this "Generate delegate methods", it will implement all needed methods for the interface, redirecting their logic to myInterface's methods:
class A : MyInterface {
MyInterface myInterface;
public void methodA() {
myInterface.methodA();
}
public int methodB() {
return myInterface.methodB();
}
}
Is it possible to accomplish the same with VS2010? And with R#?
Thanks