28 lines
927 B
C#
28 lines
927 B
C#
using System;
|
|
|
|
namespace AutoMapPropertyHelper
|
|
{
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
|
|
public class AutoMapPropertyAttribute : System.Attribute
|
|
{
|
|
/// <summary>
|
|
/// Overrides the top-level nullability of the generated property after selecting its type.
|
|
/// Collection element and generic argument nullability are unchanged.
|
|
/// </summary>
|
|
public AutoMapNullability Nullability { get; set; } = AutoMapNullability.Preserve;
|
|
|
|
public AutoMapPropertyAttribute(string name)
|
|
{
|
|
}
|
|
public AutoMapPropertyAttribute(string name, Type? typeName)
|
|
{
|
|
}
|
|
public AutoMapPropertyAttribute(string name, Type? typeName, string? customTo)
|
|
{
|
|
}
|
|
public AutoMapPropertyAttribute(string name, Type? typeName, string? customTo, string? customFrom)
|
|
{
|
|
}
|
|
}
|
|
}
|