diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IVectorViewToIReadOnlyListAdapter.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IVectorViewToIReadOnlyListAdapter.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IVectorViewToIReadOnlyListAdapter.cs b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IVectorViewToIReadOnlyListAdapter.cs index 37f21307dc..76b0fff00d 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IVectorViewToIReadOnlyListAdapter.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/IVectorViewToIReadOnlyListAdapter.cs @@ -43,7 +43,7 @@ namespace System.Runtime.InteropServices.WindowsRuntime try { - return _this.GetAt((uint) index); + return _this.GetAt((uint)index); // We delegate bounds checking to the underlying collection and if it detected a fault, // we translate it to the right exception: @@ -62,15 +62,15 @@ namespace System.Runtime.InteropServices.WindowsRuntime { bool fUseString; Delegate target = System.StubHelpers.StubHelpers.GetTargetForAmbiguousVariantCall( - this, - typeof(IReadOnlyList<T>).TypeHandle.Value, + this, + typeof(IReadOnlyList<T>).TypeHandle.Value, out fUseString); if (target != null) { return (JitHelpers.UnsafeCast<Indexer_Get_Delegate<T>>(target))(index); } - + if (fUseString) { return JitHelpers.UnsafeCast<T>(Indexer_Get<string>(index)); |