1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-06 16:25:59 +02:00

Add IsStatic and IsAbstract to System.Type

This commit is contained in:
MineGame159 2023-02-17 16:00:34 +01:00
parent e8c763eb20
commit fdc598b4a2
3 changed files with 28 additions and 1 deletions

View file

@ -394,6 +394,22 @@ namespace System
}
}
public bool IsStatic
{
get
{
return (mTypeFlags & .Static) != 0;
}
}
public bool IsAbstract
{
get
{
return (mTypeFlags & .Abstract) != 0;
}
}
public virtual int32 GenericParamCount
{
get
@ -1461,6 +1477,9 @@ namespace System.Reflection
Function = 0x40000,
HasDestructor = 0x80000,
GenericParam = 0x100000,
Static = 0x200000,
Abstract = 0x400000,
}
public enum FieldFlags : uint16