Search This Blog

Wednesday, May 3, 2017

C# Concat Example

C# > String > Methods > Concat

Concatenates strings and it does not add any delimiters.

Example


string firstName = "Dan";
string lastName = "Trump";


var name = string.Concat(firstName, " ", lastName); // "Dan Trump"