public class A
{
public int g(int i)
{
return i * 2;
}
public void f()
{
int[] ints = {1, 2, 3};
ints.Select(g);
}
}
It won't let me pass 'g' as an argument unless I do this...
ints.Select(new Func<int, int>(g));
I think that the delegate should be implicit as it is here... (this compiles)
Func<int, int> del = g; ...
Go to the complete details ...