In the same class I have method CheckGuess, that take an integer from user input and check the price, if it not correct it should add it to previousGuesses and then display all the user guesses when he got the right answer.
In my program class after the actual game finish and user guessed the price I need to display statistics with his number of tries and all the guesses:
\
The problem is that I am just learning C# and I can't figure out how to correctly add Product price and description that user guessed to the property list
here is my error message I am getting:
any help appriciated
Also when is it the right way to print the property values that are in the saved list?
Console.WriteLine("Previous guesses:" + game.PreviousGuesses);