2,892 questions
Hi @Mansour_Dalir ,
You can refer to the following code.
Dim resultIndexes As Integer() = array1.
Select(Function(element, index) New With {.Element = element, .Index = index}).
Where(Function(item) array2.Contains(item.Element)).
Select(Function(item) item.Index).
ToArray()
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.