I am starting in C# Linq. I would like to performance this query.
I Got an List of object List with several values per object, one of them is a "Text". I would like to seek which object have an especific text them get the index of the Object for the List.
to get index is not completed
var List = GetListObject();
var index = unitList.Select(x => x.Text.ToString().Contains("Text"));