rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Attributes/CommandParameterDescription...

18 lines
564 B
C#

using System;
namespace QFSW.QC
{
/// <summary>Provides a command paremeter with a description.</summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class CommandParameterDescriptionAttribute : Attribute
{
public readonly string Description;
public readonly bool Valid;
public CommandParameterDescriptionAttribute(string description)
{
Description = description;
Valid = !string.IsNullOrWhiteSpace(description);
}
}
}