Index of: how does it works?















I’m trying to get the indices of filtered elements from a list. For some reason I can get indices with list.FirstIndexOf but not with IndexOf. The problem is i need all indices of the ocurrence and not just the first one. Am I doing something wrong?



Here is one you haven’t tried…


Thank you Vikram. Didn’t see it!