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);

Sushil Gupta37 reputationPosted Jun 8, 2015, 9:00 AM EDT
Why you are making thread sleep? any reason?
If dt is type string you can avoid for loop see below