A better way how to multiply all the elements in an IEnumerable by 2, except First() and Last()??? MyEnumerable.Count.Select((x,i)=> (i>0 && i<MyEnumerable.Count()-1) ? x*2 : x);

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • .NET Runtime

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

  • If using Net6, TryGetNonEnumeratedCount is a good way to at least attempt grabbing the count without forcing a total enumeration. https://github.com/dotnet/runtime/issues/27183

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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