Here is my code that I am working with:
ListOfPackageContents is a List(Of ZipArchiveEntry).
My first line of code works, but the second does not. May I have some help to find if an item exists in a List of T.
I can easily loop through the List, but am wondering how to do this with the above code style... btw, what is the above style of code, where functions can be used in a line of code?
Code:
MsgBox(ListOfPackageContents.FindIndex(Function(item) item.Name = "Schedule"))
MsgBox(ListOfPackageContents.Contains(Function(item) item.Name = "Schedule"))My first line of code works, but the second does not. May I have some help to find if an item exists in a List of T.
I can easily loop through the List, but am wondering how to do this with the above code style... btw, what is the above style of code, where functions can be used in a line of code?