Is there a reason why a WithIndex() extension method isn't apart of the standard library?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/csharp

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
  • csharplang

    The official repo for the design of the C# programming language

    There was a fairly long discussion about this on the csharplang repo. And while the consensus there seems to be that such a method should be added, AFAICT, nobody actually created an issue about this on the runtime repo (which is what needs to happen for this to move forward).

  • .NET Runtime

    .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

    There was a fairly long discussion about this on the csharplang repo. And while the consensus there seems to be that such a method should be added, AFAICT, nobody actually created an issue about this on the runtime repo (which is what needs to happen for this to move forward).

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • MoreLINQ

    Extensions to LINQ to Objects

    If you don't already know about it, I highly recommend checking out the MoreLINQ open source project which adds a bunch of these less common but still occasionally useful extensions to LINQ. They also include an Index method which does exactly what your WithIndex method does, yielding out KeyValuePair entries for each iteration.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts