3 Repos
Tools that automatically produce C# source files to eliminate boilerplate code.
Distinct from C# Code Generators: Existing candidates are for C or C++ headers; this is specifically for generating C# boilerplate and accessors.
Explore 3 awesome GitHub repositories matching development tools & productivity · C# Source Code Generators. Refine with filters or upvote what's useful.
Entitas is a data-oriented Entity Component System framework for Unity. It is designed to separate game state into components and logic into systems, utilizing a data-oriented design to optimize CPU cache usage, memory usage, and processing speed. The framework includes a C# source code generator that automatically produces boilerplate classes, entity accessors, and context singletons to reduce manual coding. It also provides a Unity editor debugging tool for real-time runtime state visualization, system performance monitoring, and visual entity inspection. The system manages entity lifecycl
Automatically generates boilerplate classes, entity accessors, and context singletons to reduce manual coding.
Mapperly is a C# source generator used for high-performance object-to-object mapping in .NET. It functions as a compile-time mapping library that produces the necessary transformation code during the build process, eliminating the need for runtime reflection when converting between domain models and data transfer objects. The tool distinguishes itself by providing type-safe diagnostic validation and strict mapping enforcement, emitting warnings for unmapped properties at compile time. It includes specialized capabilities for circular reference handling and deep cloning to maintain object iden
Uses C# source generators to automate the production of mapping code during the build process.
OneOf ist eine C#-Bibliothek für diskriminierte Unions und ein Source-Generator, der funktionale Summentypen bereitstellt. Es dient als Tool für stark typisierte Polymorphie und ermöglicht es Entwicklern, Methodenparameter und Rückgabewerte zu definieren, die exakt einer von mehreren spezifischen Typen entsprechen können. Das Projekt implementiert funktionale Programmiermuster, um generische Basisklassen durch typsichere Unions zu ersetzen. Es nutzt einen Source-Generator, um den für die Verwaltung dieser Union-Typ-Hierarchien erforderlichen Boilerplate-Code automatisch während der Kompilierung zu erzeugen. Die Bibliothek bietet Mechanismen für Pattern Matching und die Extraktion von Union-Werten, inklusive einer zur Kompilierzeit erzwungenen Vollständigkeitsprüfung, um sicherzustellen, dass jeder mögliche Typfall in Switch-Ausdrücken behandelt wird. Sie unterstützt wiederverwendbare Union-Typ-Definitionen und polymorphes API-Design durch Multi-Typ-Rückgabesignaturen und Parameterunterstützung.
Utilizes C# source generators to automatically produce the class hierarchies and metadata required for union types.