EchoTex_Payroll/HRM.UI/Controllers/MobileAPI/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs

18 lines
562 B
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using System;
namespace HRMobileAPI.Areas.HelpPage.ModelDescriptions
{
/// <summary>
/// Use this attribute to change the name of the <see cref="ModelDescription"/> generated for a type.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)]
public sealed class ModelNameAttribute : Attribute
{
public ModelNameAttribute(string name)
{
Name = name;
}
public string Name { get; private set; }
}
}