using System; using System.Xml.Serialization; namespace OpenTap; /// /// Describes what hardware an Instrument or Dut driver supports. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class SupportedModelsAttribute : Attribute { /// /// The manufacturer of the hardware. /// public string Manufacturer { get; set; } /// /// The hardware model numbers supported by the driver. /// public string[] Models { get; set; } /// /// Instantiates a new /// /// The manufacturer of the hardware. /// The hardware model numbers supported by the driver. public SupportedModelsAttribute(string manufacturer, params string[] models) { Manufacturer = manufacturer; Models = models; } /// /// Instantiates a new /// public SupportedModelsAttribute() { } }