Class IncludeBaseForgeAttribute
- Namespace
- ForgeMap
- Assembly
- ForgeMap.Abstractions.dll
Inherits attribute-based configuration (IgnoreAttribute, ForgePropertyAttribute, ForgeFromAttribute, ForgeWithAttribute) from a base forge method that maps BaseSourceType → BaseDestinationType. The base forge method must exist in the same forger class.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class IncludeBaseForgeAttribute : Attribute
- Inheritance
-
objectAttributeIncludeBaseForgeAttribute
Constructors
IncludeBaseForgeAttribute(Type, Type)
Creates a new IncludeBaseForgeAttribute.
public IncludeBaseForgeAttribute(Type baseSourceType, Type baseDestinationType)
Parameters
baseSourceTypeTypeThe source type of the base forge method.
baseDestinationTypeTypeThe destination type of the base forge method.
Properties
BaseDestinationType
Gets the destination type of the base forge method.
public Type BaseDestinationType { get; }
Property Value
- Type
BaseSourceType
Gets the source type of the base forge method.
public Type BaseSourceType { get; }
Property Value
- Type