Skip to content

Commit

Permalink
Fix: Hashcode on a databound object breaks combobox binding when what…
Browse files Browse the repository at this point in the history
… the

hashcode is based off of changes.
  • Loading branch information
Kinematics committed Apr 7, 2016
1 parent e5e4486 commit 2e66fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TallyCore/Quests/Quest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ public override bool Equals(object obj)
CultureInfo.InvariantCulture.TextInfo.ToLower(other.DisplayName), StringComparison.Ordinal) == 0;
}

public override int GetHashCode() => DisplayName.GetHashCode();
// Note: Do not implement GetHashCode based on mutable properties. It will break combobox binding.
//public override int GetHashCode() => DisplayName.GetHashCode();

/// <summary>
/// IComparer function.
Expand Down

0 comments on commit 2e66fdd

Please sign in to comment.