Something in the likes of IList.IndexOf() but on IEnumerable?

前端 未结 3 1632
旧巷少年郎
旧巷少年郎 2021-02-20 12:17

Is there any method / extension method on IEnumerable that allows me to find the index of of an object instance in it? Like IndexOf() in IList?

indexPosition = m         


        
3条回答
  •  野性不改
    2021-02-20 12:54

    Extension Methods for Enumerable Part II - Index injection and index extraction http://chaowchaow.blogspot.com/2008/05/extension-methods-for-enumerable-part.html

提交回复
热议问题