+ 1

Better option

Isn't is better to do Console.WriteLine("Hello " + yourName); instead of the place holder?

6th Sep 2018, 5:54 PM
Ivo Pas
Ivo Pas - avatar
1 ответ
+ 1
No this is just personal preference. https://code.sololearn.com/cZAfo3Y9ElXv Every line has the same output. OK. In very detail using placeholders seems the better one. Because string are immutable. Concatenation of 2 strings "hello" and "YourName" creates a new string. https://stackoverflow.com/questions/16432/string-output-format-or-concat-in-c
6th Sep 2018, 8:07 PM
sneeze
sneeze - avatar