summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs')
-rw-r--r--src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs
index 87330e2559..03c48b546b 100644
--- a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs
+++ b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ListToVectorAdapter.cs
@@ -44,7 +44,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime
}
catch (ArgumentOutOfRangeException ex)
{
- throw WindowsRuntimeMarshal.GetExceptionForHR(__HResults.E_BOUNDS, ex, "ArgumentOutOfRange_IndexOutOfRange");
+ throw WindowsRuntimeMarshal.GetExceptionForHR(HResults.E_BOUNDS, ex, "ArgumentOutOfRange_IndexOutOfRange");
}
}
@@ -99,7 +99,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime
}
catch (ArgumentOutOfRangeException ex)
{
- throw WindowsRuntimeMarshal.GetExceptionForHR(__HResults.E_BOUNDS, ex, "ArgumentOutOfRange_IndexOutOfRange");
+ throw WindowsRuntimeMarshal.GetExceptionForHR(HResults.E_BOUNDS, ex, "ArgumentOutOfRange_IndexOutOfRange");
}
}
@@ -119,7 +119,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime
catch (ArgumentOutOfRangeException ex)
{
// Change error code to match what WinRT expects
- ex.SetErrorCode(__HResults.E_BOUNDS);
+ ex.SetErrorCode(HResults.E_BOUNDS);
throw;
}
}
@@ -137,7 +137,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime
catch (ArgumentOutOfRangeException ex)
{
// Change error code to match what WinRT expects
- ex.SetErrorCode(__HResults.E_BOUNDS);
+ ex.SetErrorCode(HResults.E_BOUNDS);
throw;
}
}
@@ -156,7 +156,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime
if (_this.Count == 0)
{
Exception e = new InvalidOperationException(SR.InvalidOperation_CannotRemoveLastFromEmptyCollection);
- e.SetErrorCode(__HResults.E_BOUNDS);
+ e.SetErrorCode(HResults.E_BOUNDS);
throw e;
}
@@ -202,7 +202,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime
if (((uint)Int32.MaxValue) <= index || index >= (uint)listCapacity)
{
Exception e = new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_IndexLargerThanMaxValue);
- e.SetErrorCode(__HResults.E_BOUNDS);
+ e.SetErrorCode(HResults.E_BOUNDS);
throw e;
}
}