Kit.Core/LibCommon/Kit.Core.Helpers/Attributes/NeedToGenerateJsConstAttrib...

12 lines
968 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Kit.Helpers
{
/// <summary> Атрибут, указывающий на то, что для данного статического класса / enum нужно сформировать js-объект </summary>
/// <remarks> Описания класса и полей, которые нужно включить в генерацию, нужно указывать с помощью <see cref="System.ComponentModel.DescriptionAttribute"/> </remarks>
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Enum, Inherited = false, AllowMultiple = false)]
public sealed class NeedToGenerateJsConstAttribute : Attribute
{
/// <summary> Создавать ли константный объект "{имя класса/enum}Titles" с теми же ключами, но значениями из <see cref="System.ComponentModel.DescriptionAttribute"/> </summary>
public bool NeedTitlesObject { get; set; }
}
}