using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Attributes
{
///
/// 标记可加载到指令集中的类或方法
///
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public sealed class BOBCommandAttribute : Attribute
{
///
/// 指令描述(用于工具提示)
///
public string Description { get; }
///
/// 指令分类(用于树形视图分组)
///
public string Category { get; set; } = "默认分类";
public BOBCommandAttribute() { }
public BOBCommandAttribute(string description)
{
Description = description;
}
}
}