public void ValidatePassword(string password) { if (Password.ToLower() != password.ToLower()) throw new Exception("密码错误!"); }