Support .NET 9.0 Index to ROW_NUMBER
Open
area-query
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
[Release notes](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview#linq)
[Docs](https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.index?view=net-9.0#system-linq-enumerable-index-1(system-collections-generic-ienumerable((-0))))
```c#
IEnumerable lines2 = File.ReadAllLines("output.txt");
foreach ((int index, string line) in lines2.Index())
{
Console.WriteLine($"Line number: {index + 1}, Line: {line}");
}
```
This could be translated via ROW_NUMBER, similar to #24218.
Contributor guide
Assessment
This issue has not been assessed yet.