---
title: "Discussion on \"LINQ gems: Indexed Select\" | Hashnode"
description: "Discussion on \"LINQ gems: Indexed Select\". Here's another LINQ gem, which is very useful if you plan to base your projection or filtering logic on the element's index in a sequence.\nFrom the MSDN page for Enumerable.Select():\n\nProjects each element of a sequence into a new form by incorporati..."
url: "https://hashnode.com/posts/linq-gems-indexed-select/5f993ab50cfd3a2ef8fe69a0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LINQ gems: Indexed Select](https://mydevtricks.com/linq-gems-indexed-select?utm_source=hashnode&utm_medium=feed)

Here's another LINQ gem, which is very useful if you plan to base your projection or filtering logic on the element's index in a sequence. From the MSDN page for Enumerable.Select(): Projects each element of a sequence into a new form by incorporati...

Oct 28, 2020 · 4 min read · mydevtricks.com  
Updated Mar 27, 2021  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#net](https://hashnode.com/tag/net)

## Written by

[Jan Doubek](https://hashnode.com/@jd-cz)

@jd-cz

  
[View profile](https://hashnode.com/@jd-cz)

Trying to disprove that old-school Devs cannot learn new tricks!

I'm an "old-school" Software Engineer, mostly specializing in C# and .NET. Currently in the process of discovering AI and Machine Learning.

## Responses 1

Markdown supported · ⌘↵ to post

[Deivydas Voroneckis](https://hashnode.com/@Deivydas)

[Nov 3, 2020](https://hashnode.com/posts/linq-gems-indexed-select/5f993ab50cfd3a2ef8fe69a0/comment/5fa13b47a5f5117f1201fffb)

Would this work in Ef Core non client query evaluation?

[Jan Doubek](https://hashnode.com/@jd-cz)

[Nov 3, 2020](https://hashnode.com/posts/linq-gems-indexed-select/5f993ab50cfd3a2ef8fe69a0/comment/5fa13b47a5f5117f1201fffb#reply-5fa1b233cad5a1068b51aa01)

Good question. Even though there is an indexed Queryable.Select() overload, I do not think EF Core (or at least the EF SQL Server provider) actually supports it. I checked it real quick and got a "LINQ expression could not be translated" exception.
