How to append string in c#

{0 Comments}

There is no any function or method to append strings in Csharp language, but string can be appended after another existing string. In this article you will get to know how we can append string after other string in csharp language. We usually use plus operator to append a string to other existing string. So to append a string we can use plus operator followed by equal operator. In the following code sample you can see how we can do this.

 C# |  copy code |? 
1
string existingstring = "this is first string";
2
        existingstring += "this is secound string";
3

Leave a Comment

Your email address will not be published.