I've been making a webapp in Blazor and have been stuck on this error, which I cannot find any documentation of.
I wrote in my razor page:
@foreach (App app in AppService.AllApps)
{
<tr>
<td>@app.Title</td>
<td>@app.Price</td>
</tr>
}
And the Visual Studio error says "'App' does not contain a definition for 'Title' and no accessible extension method 'Title' accepting a first argument of type 'App' could be found." (The same for Price)
So I looked at my class, "App", and it contained:
public string Title { get; set; }
So, I don't understand why it didn't recognize that.
Thanks, in advance, any advice is helpful.