Answers for "c# string methods"

C#
5

c# string methods

string string1 = "Today is " + DateTime.Now.ToString("D") + ".";
Console.WriteLine(string1);

string string2 = "This is one sentence. " + "This is a second. ";
string2 += "This is a third sentence.";
Console.WriteLine(string2);
Posted by: Guest on April-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language