Overview of Mapperly
mainMapperly is a .NET source generator designed to automate object-to-object mappings. Instead of writing tedious boilerplate code by hand, you only need to define the method signature for the mapping, and Mapperly generates the implementation at build time.
Key characteristics:
- Build-time generation: Code is generated during compilation, resulting in minimal runtime overhead.
- No Reflection: Because it avoids reflection, it is fully trimming-safe and AoT (Ahead-of-Time) friendly.
- Readable & Debuggable: The generated code is standard C# that you can inspect and debug.
- Zero Runtime Dependency: Mapperly does not require a runtime library to function.
- Pluggable: You can implement specific mappings manually, and Mapperly will pick them up and use them during the generation process.