Open wojiuxuihuan opened 1 year ago
The origon code as following, which will always get the wrong answer:
protected bool Equals(Combination other) { return TriggerKey == other.TriggerKey && Chord.Equals(other.Chord); }
Add a pair of parentheses should fix:
protected bool Equals(Combination other) { return (TriggerKey == other.TriggerKey) && Chord.Equals(other.Chord); }
The origon code as following, which will always get the wrong answer:
Add a pair of parentheses should fix: