HIDLibrary.HidDevice[] HidDeviceList;
HidDevice HidDevice;
// Enumerate the devices with the Vendor Id
// and Product Id of the IT4600
HidDeviceList = HidDevices.Enumerate(VID, PID);
該代碼在此錯誤HIDLIbrary編譯錯誤
錯誤5無法隱式轉換類型 「System.Collections.Generic.IEnumerable」到 「HidLibrary.HidDevice [最後行編譯失敗]」。明確的轉換存在(你是 丟失演員?)
我需要什麼演員?
'HidDevices.Enumerate(VID,PID).ToArray()'或'.Cast().ToArray()'也許? –
pinkfloydx33
這就是解決方案Pink Floyd!謝謝。 如果您可以將其作爲解決方案而不是評論發佈,我會對其進行補充。 – OXO