Allows writing of string formatting expressions using inline expressions instead of positional arguments. Improves code readability.
how to use
Prefix interpolated string with $ and replace position index with interpolated expression. Argument list is no longer needed.
note
Any valid C# expression is allowed inside the { } characters in an interpolated string which includes and is not limited to computations, conditionals, method calls, and LINQ queries. Interpolated string syntax is $"<text> {<interpolated-expression> [,<field-width>] [:<format-string>] } <text> ..."