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

<PackageReference Include="Riok.Mapperly" Version="3.6.0" />

 MapEnumValueAttribute

public sealed class MapEnumValueAttribute : Attribute
Customizes how enum values are mapped
using System; using System.Diagnostics; using System.Runtime.CompilerServices; namespace Riok.Mapperly.Abstractions { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] [Conditional("MAPPERLY_ABSTRACTIONS_SCOPE_RUNTIME")] public sealed class MapEnumValueAttribute : Attribute { public Enum Target { get; } public Enum Source { get; } public MapEnumValueAttribute(object source, object target) { Source = (Enum)source; Target = (Enum)target; } } }