Skip to main content

MapperIgnoreTargetValueAttribute

Namespace: Riok.Mapperly.Abstractions

Ignores a target enum value from the mapping.

public sealed class MapperIgnoreTargetValueAttribute : System.Attribute

Inheritance ObjectAttributeMapperIgnoreTargetValueAttribute
Attributes NullableContextAttribute, NullableAttribute, AttributeUsageAttribute, ConditionalAttribute

Properties

TargetValue

Gets the target enum value which should be ignored from the mapping.

public Enum TargetValue { get; }

Property Value

Enum

TypeId

public object TypeId { get; }

Property Value

Object

Constructors

MapperIgnoreTargetValueAttribute(Object)

Ignores the specified target enum value from the mapping.

public MapperIgnoreTargetValueAttribute(object target)

Parameters

target Object
The target enum value to ignore.