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

<PackageReference Include="Riok.Mapperly" Version="2.6.0-next.3" />

 MappingConversionType

public enum MappingConversionType
A MappingConversionType represents a type of conversion how one type can be converted into another.
All = -1

Enables all supported conversions.

Use the constructor of the target type, which accepts the source type as a single parameter.

EnumToEnum = 128

If the source is an Enum and the target is another Enum, map it according to the EnumMappingStrategy.

If the source is an Enum and the target is a String, uses the name of the enum member to convert it to a string.

An explicit cast from the source type to the target type.

An implicit cast from the source type to the target type.

None = 0

None.

If the source type is a String, uses a a static visible method named `Parse` on the target type with a return type equal to the target type and a string as single parameter.

If the target is an Enum and the source is a String, parses the string to match the name of an enum member.

If the target type is a String, uses the `ToString` method on the source type.