5 ways to concatenate strings with C# .NET
September 12, 2016 1 Comment
There are multiple ways to build a string out of other strings in .NET. Here come 5 of them.
Let’s start with the most obvious one that language learners encounter first, i.e. concatenation done by the ‘+’ operator:
string concatenatedOne = "This " + "is " + "a " + "concatenated " + "string.";