mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-21 09:27:59 +02:00
Added IsReadOnly to FieldInfo and MethodInfo
This commit is contained in:
parent
c080f1cbb1
commit
996377909f
6 changed files with 28 additions and 26 deletions
|
@ -47,6 +47,9 @@ namespace System.Reflection
|
|||
public bool IsPrivate => Compiler.IsComptime ?
|
||||
(Type.[Friend]Comptime_Method_GetInfo(mData.mComptimeMethodInstance).mMethodFlags & .MethodAccessMask) == 0 :
|
||||
(mData.mMethodData.[Friend]mFlags & .MethodAccessMask) == 0;
|
||||
public bool IsReadOnly => Compiler.IsComptime ?
|
||||
(Type.[Friend]Comptime_Method_GetInfo(mData.mComptimeMethodInstance).mMethodFlags & .ReadOnly) == 0 :
|
||||
(mData.mMethodData.[Friend]mFlags & .ReadOnly) == 0;
|
||||
|
||||
public StringView Name => Compiler.IsComptime ?
|
||||
Type.[Friend]Comptime_Method_GetName(mData.mComptimeMethodInstance) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue