Hi,
As your list is a string type and you want to search the string inside the string list you can able to use something like this:
List<ListBox> list;
string fileName = list.FirstOrDefault(x => x.Name.Equals("something"));
Here I have used the "
Equals()" method to compare the value but you can able to use some more methods like "
EndsWith()" or "
StartsWith()" etc.
Thanks
Sisir Patro