CSharp · Console
using System;
using System.Linq.Expressions;
public class Program
{
public static void Foo(Expression<Func<int>> expr) {
Console.WriteLine($"I can manipulate the AST of {expr}");
}
public static void Main()
{
int x = 1;
int y = 2;
Foo(() => x + y);
}
}