Nick Halterman

Nick Halterman

  • NA
  • 1
  • 633

c# code shorten up

Jun 8 2015 10:58 AM
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)