If you really just need the first index then count the ones that don’t match:
var index = list.TakeWhile(t => !someCondition).Count()
If you really just need the first index then count the ones that don’t match:
var index = list.TakeWhile(t => !someCondition).Count()