GetInfo() private method

private GetInfo ( ) : bool
return bool
 protected override bool TryCreateDevice(object key, out HidDevice device, out object creationState)
 {
     creationState = null;
     string syspath = (string)key; var hidDevice = new LinuxHidDevice(syspath);
     if (!hidDevice.GetInfo()) { device = null; return false; }
     device = hidDevice; return true;
 }
Example #2
0
        protected override bool TryCreateDevice(object key, out HidDevice device, out object creationState)
        {
            creationState = null;
            string syspath = (string)key; var hidDevice = new LinuxHidDevice(syspath);

            if (!hidDevice.GetInfo())
            {
                device = null; return(false);
            }
            device = hidDevice; return(true);
        }