tangxu
2024-05-29 14725e33b8edeaa2235e01792c0440d79a0d9b83
WebApi/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs
对比新文件
@@ -0,0 +1,18 @@
using System;
namespace IStation.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; }
    }
}