ObjectFactoryAttribute
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.
using System;
using System.Diagnostics;
namespace Riok.Mapperly.Abstractions
{
[AttributeUsage(AttributeTargets.Method)]
[Conditional("MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME")]
public sealed class ObjectFactoryAttribute : Attribute
{
}
}