Answers for "what does concat do in C#"

C#
3

c# String.Concat()

string first = "hello_";
string second = "world";
/* Unite multiple strings to one new string*/

string third = String.Concat(first, second);
// string third will be now "hello_world"
Posted by: Guest on March-26-2021
1

concatenation in c#

string string1 = "c# is little bit";
string string2 = " tough at start only";
Console.WriteLine("------------Concatination--------------");
Console.WriteLine(string1+string2);
Posted by: Guest on October-30-2021
0

C# concatenation

// Declare strings    
string firstName = "Mahesh";    
string lastName = "Chand";    
    
// Concatenate two string variables    
string name = firstName + " " + lastName;    
Console.WriteLine(name);
Posted by: Guest on August-17-2021
-2

c# Add or Concatenate Strings In C#

string str1 = "ppp";  
string strRes = str1.Insert(2, "bbb");  
Console.WriteLine(strRes.ToString());
Posted by: Guest on December-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language