Strings concatenating in C#
Forums:
var s1 = "three";
var s2 = "two";
var s3 = s1 + ", " + s2;
s3 += ", one";
var sGo = string.Concat(s3, ", ", "go!");
//sGo is "three, two, one, go!"
- Log in to post comments
var s1 = "three";
var s2 = "two";
var s3 = s1 + ", " + s2;
s3 += ", one";
var sGo = string.Concat(s3, ", ", "go!");
//sGo is "three, two, one, go!"