C# C# Streams and Data Processing Parsing Data Working with DateTime

Chris Domena
Chris Domena
11,139 Points

How 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
Tyler B
5,767 Points

You 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.