我正在学习c#的Lambda,说我有:
void Foo<T> (T x) {}
void Bar<T> (Action<T> a) {}
以下3个表达式是完全相同的吗?
Bar<int> (x => Foo (x)); // (1) the comment is 'Specify type parameter for Bar'
Bar ((int x) => Foo (x)); // (2)
Bar<int> (Foo); // (3) the comment is 'As above, but with method group'