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; } } }