コード例 #1
0
        public static Task WriteReportAsync(this IHidDevice device, IHidReport report)
        {
            if (device == null)
            {
                throw new ArgumentNullException($"{nameof(device)} is null");
            }

            return(device.WriteRawDataAsync(report.GetWholeData()));
        }