In c#, the string Concat method is used to concatenate or append one string to the end of another string and return a new string.
Following is the pictorial representation of appending two strings using the Concat() method in the c# programming language.
If you observe the above diagram, we are concatenating two strings,”Suresh” and “Dasari” by using the Concat method and returning a new string like “SureshDasari”.
Following is the syntax of defining a Concat method to append one or more strings in the c# programming language.
If you observe syntax, the Concat method will append multiple strings and return them as a new string.
Following is the example of using the Concat() method to append or concatenate one or more strings and return it as a new string in the c# programming language.
If you observe the above example, we used a Concat() method to append multiple strings and return them as a new string.
When you execute the above c# program, you will get the result below.
This is how you can use Concat() method to append or concatenate one or more strings into one string in the c# programming language.