Open sandboxFocus

Method AddExpression

AddExpression(dynamic?, int?, string?)

Adds an expression to the interpolated string.

Declaration
public void AddExpression(dynamic? expression, int? alignment = null, string? format = null)
Parameters
Type Name Description
dynamic expression

The expression to add.

int? alignment

Optional alignment specification for the expression.

string format

Optional format string for the expression.

AddExpression(IExpression?, int?, string?)

Adds an expression to the interpolated string.

Declaration
public void AddExpression(IExpression? expression, int? alignment = null, string? format = null)
Parameters
Type Name Description
IExpression expression

The expression to add.

int? alignment

Optional alignment specification for the expression.

string format

Optional format string for the expression.