Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Intermediate C#!
You have completed Intermediate C#!
Preview
What does it mean for two objects to be equal?
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Let's add another method to the Path
class that will return true,
0:00
if the map location passed in,
is on the path.
0:03
So we'll say public bool IsOnPath and
0:06
it will take a MapLocation as a parameter.
0:10
And this method, will loop through all
of the locations in the path array.
0:17
So we'll say,
foreach(var pathLocation in _path,
0:22
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