customers.Select((c,i) => new { Customer = c, Index = i }) .Where(x => x.Customer.ID == 150) .Select(x => x.Index);
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
customers.Select((c,i) => new { Customer = c, Index = i }) .Where(x => x.Customer.ID == 150) .Select(x => x.Index);