コード例 #1
0
ファイル: UsbDriveInfoLinux.cs プロジェクト: sillsdev/chack
 private static bool TryGetDevicePropertyBoolean(HalDevice device, string propertyName)
 {
     //if the property does not exist, we don't care
     try
     {
         return device.GetPropertyBoolean(propertyName);
     }
     catch { }
     return false;
 }