From e57938fbda9bff702004038f76d009422968bff5 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 06 十一月 2026 18:05:07 +0800
Subject: [PATCH] 提交代码
---
DeviceService/DeviceManager/DeviceDesc.cs | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/DeviceService/DeviceManager/DeviceDesc.cs b/DeviceService/DeviceManager/DeviceDesc.cs
new file mode 100644
index 0000000..00fb61e
--- /dev/null
+++ b/DeviceService/DeviceManager/DeviceDesc.cs
@@ -0,0 +1,29 @@
+锘縰sing System;
+using System.Runtime.InteropServices;
+
+namespace DeviceService.Device
+{
+ [AttributeUsage(AttributeTargets.Class, Inherited = false)]
+ [ComVisible(true)]
+ public class DeviceDescAttribute : Attribute
+ {
+ public string Type { get; private set; }
+
+ public DeviceDescAttribute(string Type)
+ {
+ this.Type = Type;
+ }
+ }
+
+ [AttributeUsage(AttributeTargets.Property, Inherited = false)]
+ [ComVisible(true)]
+ public class DevicePropertyAttribute : Attribute
+ {
+ public string Name { get; private set; }
+
+ public DevicePropertyAttribute(string Name)
+ {
+ this.Name = Name;
+ }
+ }
+}
--
Gitblit v1.9.1