14 var name = "Joe";
15 // CS-W1000: Missing arguments to interpolation.
16 // https://deepsource.io/directory/analyzers/csharp/issues/CS-W1000
17 var intro = $"My name is name";18
19 var pi = 3.14;
20 // CS-W1003: Invalid comparison against `NaN`.
String interpolation requires that you specify the string that is to be interpolated and the required arguments. Failing to specify the required arguments may result in an ill-formatted string. Because it is possible that such strings can critically alter the behaviour and control-flow of the program, it is suggested that you fix it as soon as possible.
var pi = 3.14
var message = $"The value of `pi` is pi";
var pi = 3.14
var message = $"The value of `pi` is {pi}";