Roslyn Source Code Generators with Examples
-
Updated
Nov 5, 2024 - HTML
Roslyn Source Code Generators with Examples
Source generated polymorphic JSON converters
Tiny and simple data format/serializer.
Pure DI for .NET
A .NET source generator for generating object mappings. No runtime reflection.
C# source generator for producing faster enum lookups
A mocking library based on the Compiler APIs (Roslyn + Mocks)
A Roslyn source generator for creating constructors.
Source Generator to help create minimal api endpoint mappings.
Dependency property, routed event and weak event source generator for WPF/UWP/WinUI/Uno/Avalonia/MAUI platforms.
SpreadCheetah is a high-performance .NET library for generating spreadsheet (Microsoft Excel XLSX) files.
C# incremental generator to create a method that returns the query string of the object.
Automatically create strongly typed C# settings objects from AppSettings.json. Uses Source Generators. Includes a simple deserialization helper for when you are using Dependency Injection, or not.
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
C# source generators for the Godot Game Engine
C# source generator that generates a constructor from readonly fields/properties in a class or struct
Exposes project and assembly level information as constants in the ThisAssembly class using source generators powered by Roslyn.
Immutability is easy!
Add a description, image, and links to the csharp-sourcegenerator topic page so that developers can more easily learn about it.
To associate your repository with the csharp-sourcegenerator topic, visit your repo's landing page and select "manage topics."