I need to format a variable with string interpolation, and the format string is another variable:
here is my sample code:
static void Main(string[] a
The shortest way you can do this 'syntactically' without String.Format, is using ToString:
ToString
$"Test 2: {i.ToString(formatString)}"