laatzen/Common/Service/MeterProcessState/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs

18 lines
576 B
C#
Raw Normal View History

2021-10-01 09:09:20 +00:00
using System;
namespace Service.MeterProcessState.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)
2021-10-01 09:09:20 +00:00
{
Name = name;
}
public String Name { get; private set; }
2021-10-01 09:09:20 +00:00
}
}