#pragma warning restore 414
// @MANAGED: HResult is used from within the EE! Rename with care - check VM directory
- internal int _HResult; // HResult
+ private int _HResult; // HResult
public int HResult
{
{
get
{
- return nIsTransient(_HResult);
+ return nIsTransient(HResult);
}
}
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
catch (InvalidCastException elementCastException)
{
Exception e = new InvalidCastException(SR.Format(SR.InvalidCast_WinRTIPropertyValueArrayCoersion, this.Type, typeof (T).MakeArrayType().Name, i, elementCastException.Message), elementCastException);
- e.HResult = elementCastException._HResult;
+ e.HResult = elementCastException.HResult;
throw e;
}
}
}
catch (Exception ex) // Still may hit this case due to a race condition
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
{
value = default;
return false;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
throw;
}
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
return false;
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new KeyNotFoundException(SR.Arg_KeyNotFound);
throw;
}
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
}
catch (Exception ex)
{
- if (HResults.E_BOUNDS == ex._HResult)
+ if (HResults.E_BOUNDS == ex.HResult)
throw new ArgumentOutOfRangeException(nameof(index));
throw;
if (ex == null)
return 0; // S_OK;
- return ex._HResult;
+ return ex.HResult;
}
internal static Exception ConvertToManaged(int hr)