diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs b/src/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs index c713560e6..778b011a6 100644 --- a/src/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs +++ b/src/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs @@ -26,7 +26,7 @@ namespace System _value = pEEType.RawValue; } - public override bool Equals(Object obj) + public override bool Equals(object obj) { if (obj is RuntimeTypeHandle) { @@ -105,6 +105,7 @@ namespace System throw new PlatformNotSupportedException(); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] internal EETypePtr ToEETypePtr() { return new EETypePtr(_value); @@ -119,11 +120,11 @@ namespace System } // Last resort string for Type.ToString() when no metadata around. - internal String LastResortToString + internal string LastResortToString { get { - String s; + string s; EETypePtr eeType = this.ToEETypePtr(); IntPtr rawEEType = eeType.RawValue; IntPtr moduleBase = RuntimeImports.RhGetOSModuleFromEEType(rawEEType); @@ -140,7 +141,7 @@ namespace System ReflectionExecutionDomainCallbacks callbacks = RuntimeAugments.CallbacksIfAvailable; if (callbacks != null) { - String penultimateLastResortString = callbacks.GetBetterDiagnosticInfoIfAvailable(this); + string penultimateLastResortString = callbacks.GetBetterDiagnosticInfoIfAvailable(this); if (penultimateLastResortString != null) s += "(" + penultimateLastResortString + ")"; } |