Konkatenacja w C#
Konkatenacja z operatorem konkatenacji +
string userName = "Mark";
int points = 1254;
// Alan has 1234 points.
string sentence = userName + " has " + points + " points.";
Console.WriteLine(sentence);
Konkatenacja przez interpolację
string userName = "Mark";
int points = 1254;
// Alan has 1234 points.
//string sentence = userName + " has " + points + " points.";
string sentence = $"{userName} has {points} points.";