"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 "Complete C# Quick Reference - C# 10".