Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChris Domena
11,139 PointsHow is the GameResult.GameDate property storing all of the dates?
The while loop will be sending the date of each line through the TryParse which then feeds the GameResult.GameDate property. But the propery isnt setup as an array or list. Wont the value sent to it be whiped with each run through the while loop?
1 Answer
Tyler B
5,787 PointsYou are correct, it will be wiped out each time. This code is still a work in progress, I believe in a later video we will be adding each parsed GameResult
value to a list or at the very least printed to screen towards the end of each loop.