| |||
|
|
Угадайте-ка на каком это языке? Some examples of lambda expressions follow below: x => x + 1 // Implicitly typed, expression body x => { return x + 1; } // Implicitly typed, statement body (int x) => x + 1 // Explicitly typed, expression body (int x) => { return x + 1; } // Explicitly typed, statement body (x, y) => x * y // Multiple parameters () => Console.WriteLine() // No parameters http://msdn.microsoft.com/vcsharp/futur |
||||||||||||||