1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fix IsSubtypeOf with TypedPrimitive parameter

This commit is contained in:
disarray2077 2022-10-06 11:50:20 -03:00 committed by GitHub
parent 3d90c5366c
commit 394bcd82d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -630,7 +630,7 @@ namespace System
public virtual bool IsSubtypeOf(Type type) public virtual bool IsSubtypeOf(Type type)
{ {
return type == this; return type == this || (type.IsTypedPrimitive && type.UnderlyingType == this);
} }
public virtual Result<FieldInfo> GetField(String fieldName) public virtual Result<FieldInfo> GetField(String fieldName)