Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#expression treesSingle-choice MCQ

An expression tree captures a closure over a local variable. How is that captured variable represented in the tree?

int factor = 10; Expression<Func<int, int>> expr = x => x * factor; var mul = (BinaryExpression)expr.Body; Console.WriteLine(mul.Right.NodeType);