Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
![](https://videos.teamtreehouse.com/stills/TH-IntermediateCSharp-Stage2-Video5-stills-0.jpg?token=69972676_309852df0e4902b7b34defc05b08992759d0d82c)
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
When overriding Object.Equals we should also override Object.GetHashCode. Here's why and how.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Damir Paulić
6,591 PointsSo, if we altered 2 objects to have same hash code what happens if we change value of one of this objects?
Posted by Damir PaulićDamir Paulić
6,591 Points1 Answer
-
okilydokily
12,105 Points1 Answer
-
Mark Blanford
427 PointsIf the hashcode is the memory address by default how can it also possibly *not* be unique?
Posted by Mark BlanfordMark Blanford
427 Points3 Answers
-
Jamie Wyton
3,011 Points7 Answers
-
Mark Phillips
1,749 PointsHow come the Int32.GetHashCode() would return its value for integers? I would expect them to return the memory address?
Posted by Mark PhillipsMark Phillips
1,749 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up