Passing parameters to a string interpolation handler constructor in C#

Annotate the argument receiving the interpolated string handler with the attribute InterpolatedStringHandlerArgument, for example:

public void PrintMessage(
    string color,
    [InterpolatedStringHandlerArgument("", "color")]
    ColorInterpolatedStringHandler builder
  )

Remarks:

Know more:

References: