diff options
author | Atsushi Kanamori <AtsushiKan@users.noreply.github.com> | 2017-08-10 00:41:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-10 00:41:53 +0300 |
commit | 488ee40f7a51ae902c104f5fda767a6cfe283a29 (patch) | |
tree | f8233c56dba0d26d321a8f036723496d21c7a805 /src/System.Private.Reflection.Core | |
parent | 774e0f1ae7370eb0765f577d6cfdde4dcca4aacd (diff) |
Make future PNSE passes a little more efficient. (#4297)
Just improves the signal-noise ratio.
Diffstat (limited to 'src/System.Private.Reflection.Core')
-rw-r--r-- | src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs index aeeb69bf3..2a9345858 100644 --- a/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs +++ b/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs @@ -343,7 +343,8 @@ namespace System.Reflection.Runtime.General case RuntimeConstructorInfo constructorInfo: return constructorInfo.LdFtnResult; default: - throw new PlatformNotSupportedException(); + Debug.Fail("RuntimeMethodHandle should only return a methodbase implemented by the runtime."); + throw new NotSupportedException(); } } |