I want to join two different sentences in one sentence:
var list1 = new List<string>();
list1.Add("Hello ");
list1.Add("my name is John");
when I print elements of this list:
foreach (var item in list1)
{
Console.WriteLine(item);
}
Output:
Hello
my name is John
What I want to get is:
Hello my name is John