public override int GetHashCode() { unchecked { return((Key.GetHashCode() * 397) ^ ModifierKeys.GetHashCode()); } }
/// <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); }
public override int GetHashCode() { return(Modifiers.GetHashCode() + Keys.GetHashCode()); }
public override int GetHashCode() => (command?.GetHashCode() ?? 0) ^ modifiers.GetHashCode() ^ key.GetHashCode();
/// <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()); } }
public override int GetHashCode() { return((command == null ? 0 : command.GetHashCode()) ^ modifiers.GetHashCode() ^ key.GetHashCode()); }
public override int GetHashCode() { return(Button.GetHashCode() ^ Modifiers.GetHashCode()); }
public override int GetHashCode() { return(modifiers.GetHashCode() ^ key.GetHashCode()); }