0

Why we use {0} in c# and how to use it.

explain with exam and why it is used.

3rd Jun 2018, 5:35 AM
jali vikram reddy
jali vikram reddy - avatar
1 Réponse
+ 3
there's no real reason for using it, some people just prefer Console.WriteLine("abc {0}", msg); over Console.WriteLine("abc " + msg); pretty sure that in practice, it really doesn't matter
3rd Jun 2018, 8:16 AM
hinanawi
hinanawi - avatar