Eclipse allows us to define a class as:
interface MyInterface {
void methodA();
int methodB();
}
class A : MyInterface {
MyInterface myInterface;
}
and then using this “Generate Delegate Methods”, he implements all the necessary methods for the interface, redirecting his logic to the myInterface methods:
class A : MyInterface {
MyInterface myInterface;
public void methodA() {
myInterface.methodA();
}
public int methodB() {
return myInterface.methodB();
}
}
Is it possible to do the same with VS2010? And with R #?
thank
source
share