This commit is contained in:
Даниил Заикин
2026-06-17 20:44:53 +03:00
parent 9d153773c2
commit b133e7c656
1880 changed files with 244545 additions and 0 deletions
@@ -0,0 +1,18 @@
using System;
namespace QFSW.QC
{
/// <summary>Provides a command with a description. If the [Command] attribute already provides a description, that will supersede this one. Useful for when you have several [Command]s on a single method.</summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class CommandDescriptionAttribute : Attribute
{
public readonly string Description;
public readonly bool Valid;
public CommandDescriptionAttribute(string description)
{
Description = description;
Valid = !string.IsNullOrWhiteSpace(description);
}
}
}