Class ForgeFromAttribute
- Namespace
- ForgeMap
- Assembly
- ForgeMap.Abstractions.dll
Maps a destination property using a custom resolver method.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public sealed class ForgeFromAttribute : Attribute
- Inheritance
-
objectAttributeForgeFromAttribute
Constructors
ForgeFromAttribute(string, string)
Creates a new ForgeFromAttribute.
public ForgeFromAttribute(string destinationProperty, string resolverMethodName)
Parameters
destinationPropertystringThe name of the destination property.
resolverMethodNamestringThe name of the resolver method to call.
Properties
DestinationProperty
Gets the name of the destination property.
public string DestinationProperty { get; }
Property Value
- string
ResolverMethodName
Gets the name of the resolver method to call.
public string ResolverMethodName { get; }
Property Value
- string