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

Posted by devoured elysium on Stack Overflow See other posts from Stack Overflow or by devoured elysium
Published on 2010-04-27T01:18:24Z Indexed on 2010/04/27 1:23 UTC
Read the original article Hit count: 236

Filed under:
|
|

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 = myEnumerable.IndexOf() ?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about ienumerable