mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Merge pull request #1731 from disarray2077/patch-4
Fix IsSubtypeOf with TypedPrimitive parameter
This commit is contained in:
commit
cf9aa7012c
1 changed files with 1 additions and 1 deletions
|
@ -630,7 +630,7 @@ namespace System
|
|||
|
||||
public virtual bool IsSubtypeOf(Type type)
|
||||
{
|
||||
return type == this;
|
||||
return type == this || (type.IsTypedPrimitive && type.UnderlyingType == this);
|
||||
}
|
||||
|
||||
public virtual Result<FieldInfo> GetField(String fieldName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue