Referencing value assigned to variable in statement builder within another statement

Given a statement that does something like:
var expr = new ExpressionBuilder();
expr.AppendVerbatim("var propertyValue = (");
expr.AppendType(field.Type);
expr.AppendVerbatim(")valueType?.GetValue(");
//And so on


I would like to use the value assigned to propertyValue elsewhere, but of course, I cannot use AppendExpression with it since the context isn't aware it's been assigned. How might I go about referencing this variable value as an expression?

Thanks!
Was this page helpful?