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"
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"
concatenation in c#
string string1 = "c# is little bit";
string string2 = " tough at start only";
Console.WriteLine("------------Concatination--------------");
Console.WriteLine(string1+string2);
how add strings together
//Java
String firstName = "BarackObama";
String lastName = " Care";
//First way
System.out.println(firstName + lastName);
//Second way
String name = firstName + lastName;
System.out.println(name);
//Third way
System.out.println("BarackObama" + " Care");
c# string concatenation
string userName = "<Type your name here>";
string dateString = DateTime.Today.ToShortDateString();
// Use the + and += operators for one-time concatenations.
string str = "Hello " + userName + ". Today is " + dateString + ".";
System.Console.WriteLine(str);
str += " How are you today?";
System.Console.WriteLine(str);
C# concatenation
// Declare strings
string firstName = "Mahesh";
string lastName = "Chand";
// Concatenate two string variables
string name = firstName + " " + lastName;
Console.WriteLine(name);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us