How to get the index of an object of an IEnumerable

I am reading a row (the header of an excel). I am getting that in the form of an IEnumerable. I want to iterate through that and want to get the index of a particular field. How to get that.

Check this -

If we have an innumerable variable then

Will give that position value
Cheers @kkpatel

1 Like