private int GetLedCount() { int count = 0; LedCountInfo nci = new LedCountInfo(); if (NLedGetDeviceInfo(ledCountInfoId, nci)) { count = nci.LedsCount; } return count; }
private int GetLedCount() { int count = 0; LedCountInfo nci = new LedCountInfo(); try{ if (NLedGetDeviceInfo(ledCountInfoId, nci)) { count = nci.LedsCount; } }catch(Exception){} return count; }
private int GetLedCount() { int count = 0; LedCountInfo nci = new LedCountInfo(); try{ if (NLedGetDeviceInfo(ledCountInfoId, nci)) { count = nci.LedsCount; } }catch (Exception e) {} return(count); }
private static extern bool NLedGetDeviceInfo(uint nID, LedCountInfo output);
private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output){ return false; }
private static bool NLedGetDeviceInfo(uint nID, LedCountInfo output) { return(false); }