我如何告诉程序只有在我输入正确的密码时才授予访问权限?
谢谢你。
namespace Password
{
  class Program
  {
    static void Main(string[] args)
    {
        Console.WriteLine("Please enter password:");
        Console.ReadLine();
        string Password = "Test";
        bool PassWordMatch;
        PassWordMatch = Password == "Test";
        if (PassWordMatch)
        {
            Console.WriteLine(" Password Match. Access Granted");
        }
        else
        {
           Console.WriteLine("Password doesn't match! Access denied.");
        }
    }
}
}