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:
parent
3d90c5366c
commit
394bcd82d3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue