We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5415bd2 commit be47460Copy full SHA for be47460
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeType.cs
@@ -204,7 +204,12 @@ public override Array GetEnumValuesAsUnderlyingType()
204
}
205
206
public override int GetHashCode()
207
- => ((nuint)_pUnderlyingEEType).GetHashCode();
+ {
208
+ MethodTable* pEEType = _pUnderlyingEEType;
209
+ if (pEEType != null)
210
+ return ((nuint)pEEType).GetHashCode();
211
+ return RuntimeHelpers.GetHashCode(this);
212
+ }
213
214
public override RuntimeTypeHandle TypeHandle
215
{
0 commit comments