partial class
A class or method declared with partial so that its definition can be split across files, with some parts written by a tool.
In more detail
The compiler combines all the parts into one type. With Mapperly, you declare partial methods and the generator supplies their bodies.
Related terms
- source generator — A compiler plug-in that writes extra C# code during the build, based on the code you wrote.
- Mapperly — An open-source .NET library that generates object-mapping code at compile time from a partial class marked [Mapper].
Taught in
- Source-Generated Mapping with Mapperly — Modern .NET Core, C# & Enterprise Microservices