Is it possible to adapt a method like this function "F"
class C {
public void F(int i);
}
to a delegate like Action<C,int>
?
I have this vague recollection that Microsoft was working on supporting this kind of adaptation. But maybe I misremembered!
Edit: I know that this doesn't compile in VS2008:
class C {
public void F(int i);
void G() {
Action<C, int> test = this.F;
}
}
I was just wondering if MS provides a way to do this in the BCL, or if the feature would be added in a future version.