mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Listens to Static/Instance flags for method enumeration
This commit is contained in:
parent
014ce28195
commit
52033be6ad
2 changed files with 4 additions and 5 deletions
|
@ -381,11 +381,9 @@ namespace System.Reflection
|
|||
mIdx++;
|
||||
if (mIdx == mTypeInstance.[Friend]mMethodDataCount)
|
||||
return false;
|
||||
#unwarn
|
||||
var methodData = &mTypeInstance.[Friend]mMethodDataPtr[mIdx];
|
||||
/*bool matches = (mBindingFlags.HasFlag(BindingFlags.Static) && (methodData.mFlags.HasFlag(FieldFlags.Static)));
|
||||
matches |= (mBindingFlags.HasFlag(BindingFlags.Instance) && (!methodData.mFlags.HasFlag(FieldFlags.Static)));*/
|
||||
bool matches = true;
|
||||
bool matches = (mBindingFlags.HasFlag(BindingFlags.Static) && (methodData.mFlags.HasFlag(.Static)));
|
||||
matches |= (mBindingFlags.HasFlag(BindingFlags.Instance) && (!methodData.mFlags.HasFlag(.Static)));
|
||||
if (matches)
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -86,7 +86,8 @@ namespace IDE.Debugger
|
|||
AllowProperties = 0x20,
|
||||
MemoryAddress = 0x40,
|
||||
MemoryWatch = 0x80,
|
||||
Symbol = 0x100
|
||||
Symbol = 0x100,
|
||||
StepIntoCall = 0x200
|
||||
}
|
||||
|
||||
[Reflect]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue