コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Key.GetHashCode() * 397) ^ ModifierKeys.GetHashCode());
     }
 }
コード例 #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);
        }
コード例 #3
0
 public override int GetHashCode()
 {
     return(Modifiers.GetHashCode() + Keys.GetHashCode());
 }
コード例 #4
0
ファイル: WpfCommands.cs プロジェクト: zz110/dnSpy
 public override int GetHashCode() =>
 (command?.GetHashCode() ?? 0) ^ modifiers.GetHashCode() ^ key.GetHashCode();
コード例 #5
0
 /// <summary>
 /// gets has code for lookup
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCodeHelper.Hash(WindowsKey.GetHashCode(), WindowsModifiers.GetHashCode()));
 }
コード例 #6
0
 public override int GetHashCode()
 {
     unchecked {
         return(modifiers.GetHashCode() ^ ch.GetHashCode() ^ key.GetHashCode());
     }
 }
コード例 #7
0
ファイル: WpfCommands.cs プロジェクト: haise0/reAtomizer
 public override int GetHashCode()
 {
     return((command == null ? 0 : command.GetHashCode()) ^ modifiers.GetHashCode() ^ key.GetHashCode());
 }
コード例 #8
0
 public override int GetHashCode()
 {
     return(Button.GetHashCode() ^ Modifiers.GetHashCode());
 }
コード例 #9
0
 public override int GetHashCode()
 {
     return(modifiers.GetHashCode() ^ key.GetHashCode());
 }