What do you think about file scoped classes?

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
  • SharpLab

    .NET language playground

  • There is one exception I have encountered: you're limited to a single file (e.g. because you're using https://sharplab.io/) and you need to to do something weird (typically using a preview compiler feature without running on a preview runtime) by adding a type from a specific namespace (typically System.Runtime.CompilerServices).

  • csharplang

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

  • Also https://github.com/dotnet/csharplang/discussions/4722, where Cyrus laid out the true ambiguity of this case.

  • 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