> Similar to my last problem, I have tried to find methods that are protected
> in a type.
>
> I can't find a flag to check for that.

Check the MethodDefinition's attributes using bitwise arithmetics. You
can use the MemberAccessMask to reduce the attributes value to get the
accessibility bits.

See ECMA-335, Partition II, 23.1.10, for a description of the possible
accessibility flags:

CompilerControlled 0x0000 Member not referenceable
Private 0x0001 Accessible only by the parent type
FamANDAssem 0x0002 Accessible by sub-types only in this Assembly
Assem 0x0003 Accessibly by anyone in the Assembly
Family 0x0004 Accessible only by type and sub-types
FamORAssem 0x0005 Accessibly by sub-types anywhere, plus anyone in assembly
Public 0x0006 Accessibly by anyone who has visibility to this scope

Regards,
Fabian

-- 
--
mono-cecil

Reply via email to