C3204
2026-01-19 833c76cfe3e33a8225051405623711ffceccff2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace LB_VisionProcesses
{
    // 自定义特性用于标记工具类
    /// <summary>
    /// 工具特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class ProcessAttribute : Attribute
    {
        public string DisplayName { get; }
        public string Category { get; set; } = "通用";
        public string Description { get; set; } = "";
        public int Order { get; set; } = 0;
 
        public ProcessAttribute(string displayName)
        {
            DisplayName = displayName;
        }
    }
 
    /// <summary>
    /// 分类特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class CategoryAttribute : Attribute
    {
        public string Category { get; }
 
        public CategoryAttribute(string category)
        {
            Category = category;
        }
    }
}