MapDerivedTypeAttribute<TSource, TTarget>
Namespace: Riok.Mapperly.Abstractions
Specifies derived type mappings for which a mapping should be generated. A type switch is implemented over the source object and the provided source types. Each source type has to be unique but multiple source types can be mapped to the same target type. Each source type needs to extend or implement the parameter type of the mapping method. Each target type needs to extend or implement the return type of the mapping method.
public sealed class MapDerivedTypeAttribute<TSource, TTarget> : System.Attribute
Type Parameters
TSource
TTarget
Inheritance Object → Attribute → MapDerivedTypeAttribute<TSource, TTarget>
Attributes NullableContextAttribute, NullableAttribute, AttributeUsageAttribute, ConditionalAttribute
Properties
TypeId
public object TypeId { get; }
Property Value
Constructors
MapDerivedTypeAttribute()
public MapDerivedTypeAttribute()