private bool RefreshDeviceCache(BluetoothGatt gatt)
 {
     try
     {
         BluetoothGatt localBluetoothGatt = gatt;
         var           localMethod        = localBluetoothGatt.GetType().GetMethod("refresh", new Type[0]);
         if (localMethod != null)
         {
             bool @bool = (bool)((bool?)localMethod.Invoke(localBluetoothGatt, new object[0]));
             Debug.WriteLine(TAG, string.Format("refreshDeviceCache : {0:D}", @bool));
             return(@bool);
         }
     }
     catch
     {
         System.Console.WriteLine(TAG, "An exception occured while refreshing device");
     }
     Debug.WriteLine(TAG, string.Format("refreshDeviceCache : false"));
     return(false);
 }