Riok.Mapperly by Mapperly Contributors, Lars Tönz, Manuel Allenspach

<PackageReference Include="Riok.Mapperly" Version="3.3.0-next.4" />

 ObjectFactoryAttribute

public sealed class ObjectFactoryAttribute : Attribute
Marks a method as an object factory. An object factory can be used to instantiate or resolve target objects. An object factory method needs to be a method with a non-void return type. It can be generic with constraints and can have one or none parameters. If the object factory has a parameter, the source object is provided as an argument.