Beispiel #1
0
 public HIDNetDevice(Hid.Net.DeviceInformation deviceInformation, Hid.Net.IHidDevice hid)
 {
     if (hid == null)
     {
         throw new ArgumentNullException(nameof(hid));
     }
     if (deviceInformation == null)
     {
         throw new ArgumentNullException(nameof(deviceInformation));
     }
     _Device            = hid;
     _DeviceInformation = deviceInformation;
 }
        public HIDNetDevice(Hid.Net.DeviceInformation deviceInformation, Hid.Net.IHidDevice hid)
        {
			_Device = hid ?? throw new ArgumentNullException(nameof(hid));
            _DeviceInformation = deviceInformation ?? throw new ArgumentNullException(nameof(deviceInformation));
        }