How to append string in c#


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 |? 
string existingstring = "this is first string";
        existingstring += "this is secound string";

Leave a Comment

Your email address will not be published.