私は C# を 3 週間学習しているので、まだ基本をカバーしています。
私の質問:
プログラム (たとえば、単純な通貨コンバーター) の最後に、ユーザーがプログラムを終了することを選択した場合 (別の計算を実行するのではなく)、Console.Writeline が休憩前に表示されたままになるように時間を設定することは可能ですか?
コード:
Console.WriteLine("Would you like to perform another conversion?");
Console.WriteLine("");
Console.WriteLine("y for YES");
Console.WriteLine("e for EXIT");
decision = Console.ReadLine();
if (decision.Equals("E", StringComparison.OrdinalIgnoreCase))
{
Console.WriteLine("Thank-you for using CurrencyConverter");
break;
...
//プログラムが終了する前に、読みやすくするために上記の書き込み行を数秒間ハングアップさせることは可能ですか?