[Solved] how you can get the name of a specific item from a List [closed]


If by “report number 3” you mean the third report, you can do this:

lista[2].Name

If by “report number 3” you mean that there is an additional property on Report (e.g. Id), then you can do this:

lista.First(x => x.Id == 3).Name

0

solved how you can get the name of a specific item from a List [closed]