Files
OnDoc/API_NetFramework/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs
Stefan Hutter ea8d48ac9e Update 20240719
2024-07-19 17:03:49 +02:00

18 lines
567 B
C#

using System;
namespace API_NetFramework.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; }
}
}