alielie
7 天以前 e57938fbda9bff702004038f76d009422968bff5
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
using 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;
        }
    }
}