VisionToolAttribute.cs 690 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * ==============================================================================
  3. *
  4. * Filename: VisionToolAttribute
  5. * Description:
  6. *
  7. * Version: 1.0
  8. * Created: 2021/2/26 13:46:51
  9. *
  10. * Author: liu.wenjie
  11. *
  12. * ==============================================================================
  13. */
  14. using System;
  15. using System.Collections.Generic;
  16. using System.Linq;
  17. using System.Text;
  18. using System.Threading.Tasks;
  19. namespace CommonMethods
  20. {
  21. //自定义Attribute
  22. public sealed class VisionToolAttribute : Attribute
  23. {
  24. public ToolType ToolType { get; private set; }
  25. public VisionToolAttribute(ToolType toolType)
  26. {
  27. ToolType = toolType;
  28. }
  29. }
  30. }