namespace MapperSourceGen;
///
/// Specifies that the target property should appear in the domain transfer object with a different name.
///
[AttributeUsage(AttributeTargets.Property)]
public sealed class MapAliasAttribute : Attribute
{
private MapAliasAttribute()
{
}
///
/// Initializes a new instance of the class with the specified name.
///
/// The name to use instead of the property name.
public MapAliasAttribute(string name)
{
ArgumentException.ThrowIfNullOrWhiteSpace(name);
Name = name;
}
///
/// The name of the property in the domain transfer object.
///
public string? Name { get; }
}