Ejemplo n.º 1
0
 private static string TryGetDevicePropertyString(HalDevice device, string propertyName)
 {
     //if the property does not exist, we don't care
     try
     {
         return device.GetPropertyString(propertyName);
     }
     catch{}
     return String.Empty;
 }