August 2017
Beginner
566 pages
12h 34m
English
Now, in the next stage of the process, what you want to do is to display the search results. Next start by entering the following:
foreach(Car c in carList)
You're going to iterate over each car inside a list. That's why we have Car after the open parenthesis in this line.
In the next line, you're going to get the Make value of the car. But first, let's set this up in the following way, just to show you the errors, and then we will correct them:
sampLabel.Text += $"<br>Make:{c.MakeModel.Split(new char[] { ',' })[0]}";
With the preceding line, you're going to get the make of the car. To get Make, do the following:
Read now
Unlock full access