1
Answer

c# code shorten up

How can I shorten this up and make it more efficient but work the same way?
 
Console.Clear ();
player.SpeakAsync("The date and time is currently " + dateAndTime + "Sir");
string dt = ("The date and time is currently " + dateAndTime + ", Sir.");
foreach (char c in dt)
{
Console.Write(c);
Thread.Sleep(50);
}
Thread.Sleep(wait);
 
Answers (1)