Possible Duplicate:
C# String output: format or concat?
Console.WriteLine("Hi there, {0} {1}!", userName, userSurname);
Console.WriteLine("Hi there, " + userName + " " + userSurname + "!" );
i wanna know what is different between these to ways and which is better?
The general String.Format vs String concatenation subject has been discussed number of times on StackOverflow, please refer to following questions (just to start with):