나는 내가 더 잘 이해하기를 바라고있는 이상한 것을 발견했다.C# method group strangeness
로 다시 작성할 수 있습니다var all = new List<int[]>{
new int[]{1,2,3},
new int[]{4,5,6},
new int[]{7,8,9}
};
all.ForEach(n => n.ForEach(i => Console.WriteLine(i)));
: 여전히 현재 항목이 console.WriteLine에 통과는 람다 식의 매개 변수 (I =>)를 생략하는 것이 가능하고, 어떻게
...
all.ForEach(n => n.ForEach(Console.WriteLine));
?
어떤 통찰력에도 감사드립니다. - 키스
++ Console.WriteLine의 과부하를 "먹는"컴파일러 이미지입니다. –
매우 멋지게 표현되어 있습니다. 고맙습니다! – Keith
좋은 설명. –