, , , JIT- - . "inline", , , - - #, , :
public IEnumerable<int> Foo()
{
int[] numbers = new[] { 1, 5, 2, 5, 6 };
return numbers.Select(x => x+10);
}
x => x+10 ( ) " " , "" .
, VB9 :
Dim len As Func(Of String, Integer) = Function(x) x.Length
Console.WriteLine(len("foo"))
, VB9 #, , , , Action<T> ( ) VB9, # . , VB9, # .
VB10 - VB.
, , , :)