Library for generating C# code strings programmatically(Or "Object Oriented-ly")?

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

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

    A library and Debugger Visualizer which translates Expression Trees into readable C# source code. .NET 3.5+ and .NET Standard 1.0+.

  • Take a look at Expression Trees. They let you write code that generates and runs code on the fly and the ReadableExpressions library will serialize the generated code for you.

  • csharpier

    CSharpier is an opinionated code formatter for c#.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Verify.SourceGenerators

    Extends Verify to allow verification of C# Source Generators.

  • NTypewriter

    File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.

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