示例#1
0
 private static bool TryGetDevicePropertyBoolean(IHalDevice device, string propertyName)
 {
     //if the property does not exist, we don't care
     try
     {
         return(device.GetPropertyBoolean(propertyName));
     }
     catch { }
     return(false);
 }
示例#2
0
		private static bool TryGetDevicePropertyBoolean(IHalDevice device, string propertyName)
		{
			//if the property does not exist, we don't care
			try
			{
				return device.GetPropertyBoolean(propertyName);
			}
			catch { }
			return false;
		}