static void Session_PasswordRequested(object sender, ref string Password) { Console.Write ("Password:"); Password = readPassword (); }