"CallerArgumentExpressionAttribute Example"

static void Evaluate(int value, [CallerArgumentExpression("value")] string? expression = null) {
	Console.WriteLine($"{expression} = {value}");
}

Evaluate(1512 - 19 * 7); // Prints "1512 - 19 * 7 = 1379" on the console


Code snippet taken from "Two Decades of C#: A Reference - C# 10".