c# string formatting
Posted
by user177883
on Stack Overflow
See other posts from Stack Overflow
or by user177883
Published on 2010-06-11T00:47:59Z
Indexed on
2010/06/11
0:52 UTC
Read the original article
Hit count: 337
I m curious why would i use string formatting while i can use concatenation such as
Console.WriteLine("Hello {0} !", name);
Console.WriteLine("Hello "+ name + " !");
Why to prefer the first one over second?
© Stack Overflow or respective owner