Skip to content

Commit

Permalink
prevent BaseType from returning default (#66955)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobsaila committed Mar 22, 2022
1 parent 65b414c commit 7a01e0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override Type BaseType
{
get
{
if (RuntimeAugments.TryGetBaseType(_typeHandle, out RuntimeTypeHandle baseTypeHandle))
if (RuntimeAugments.TryGetBaseType(_typeHandle, out RuntimeTypeHandle baseTypeHandle) && !baseTypeHandle.Equals(default))
{
return GetRuntimeTypeInfo(baseTypeHandle);
}
Expand Down

0 comments on commit 7a01e0f

Please sign in to comment.