Skip to content
bagley2014 edited this page Nov 12, 2021 · 1 revision

Interpolated strings should not be used without interpolation.

Interpolated strings should only be used when there's at least one value being interpolated.

// unnecessarily verbose
string helloWorld = $"hello world";
string helloWorld = $@"hello world";

// preferred
string helloWorld = "hello world";
Clone this wiki locally