我想在输入密码时输入“ *”符号。
我几乎在Google上搜索了所有内容,但没有任何效果。
Console.Title = "Login | H4rdTurn#0001";
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.Write("Enter Your Username : ");
string userName = Console.ReadLine();
Console.WriteLine("");
Console.Write("Enter Your Password : ");
string password = Console.ReadLine();
Thread.Sleep(3000);
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("\nAccess Granted!" + "");
Thread.Sleep(2000);