Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Key.GetHashCode() * 397) ^ ModifierKeys.GetHashCode());
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Serves as a hash function for a <see cref="T:Forms9Patch.HardwareKey"/> object.
        /// </summary>
        /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a
        /// hash table.</returns>
        public override int GetHashCode()
        {
            var hashCode = 1819452472;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(KeyInput);

            hashCode = hashCode * -1521134295 + ModifierKeys.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(Modifiers.GetHashCode() + Keys.GetHashCode());
 }
Exemplo n.º 4
0
 public override int GetHashCode() =>
 (command?.GetHashCode() ?? 0) ^ modifiers.GetHashCode() ^ key.GetHashCode();
Exemplo n.º 5
0
 /// <summary>
 /// gets has code for lookup
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCodeHelper.Hash(WindowsKey.GetHashCode(), WindowsModifiers.GetHashCode()));
 }
 public override int GetHashCode()
 {
     unchecked {
         return(modifiers.GetHashCode() ^ ch.GetHashCode() ^ key.GetHashCode());
     }
 }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     return((command == null ? 0 : command.GetHashCode()) ^ modifiers.GetHashCode() ^ key.GetHashCode());
 }
Exemplo n.º 8
0
 public override int GetHashCode()
 {
     return(Button.GetHashCode() ^ Modifiers.GetHashCode());
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     return(modifiers.GetHashCode() ^ key.GetHashCode());
 }