-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement GetHashCode and Equals in terms of the type hierarchy #274
Comments
C.f. #393 |
Here we have classes overriding The equality comparison is quite a burden for the bigger classes. When it comes to For which of the classes do we see a practical advantage to override @minichma @rianjs What do you think? Code File Line Column
|
@axunonb Agree that |
Here is the revised list after checking manually whether
|
Extending some of the ideas from #271, calendar components should delegate to their parents the hashing and equality-checking for the properties that their parent types own, and simplify down to the properties that the child type owns.
For example,
Event
does its own thing, even though there is a type hierarchy above it that it completely ignores. It should probably use the type hierarchy instead. This way, bugfixes and feature enhancements will propagate to the other child types as well.This may require spending some time understanding the relationship between
UniqueComponent
andRecurringComponent
, and moving some of the hashing and equality logic to other places.The text was updated successfully, but these errors were encountered: