You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
557 B
18 lines
557 B
8 months ago
|
using System;
|
||
|
|
||
|
namespace WebAPI.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; }
|
||
|
}
|
||
|
}
|