Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Key;
         hashCode = (hashCode * 397) ^ ControlPressed.GetHashCode();
         hashCode = (hashCode * 397) ^ AltPressed.GetHashCode();
         hashCode = (hashCode * 397) ^ ShiftPressed.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Key.GetHashCode();
         result = (result * 397) ^ ControlPressed.GetHashCode();
         result = (result * 397) ^ AltPressed.GetHashCode();
         result = (result * 397) ^ ShiftPressed.GetHashCode();
         result = (result * 397) ^ WinkeyPressed.GetHashCode();
         return(result);
     }
 }