Unfortunately that doesn't distinguish (for non-nested types) between
internal, protected and private, as far as I can see.
(However, the docs for IsNotPublic suggest looking at VisibilityMask,
which leads to the TypeAttributes enumeration - from there, finding
GetAttributesImpl isn't too hard.)
There are only two levels that can be used for non-nested types,
public (IsPublic) or not (IsNotPublic). The non-public level is called
private in ILAsm, internal in C# and Friend in VB.NET. Protected
doesn't make sense if the type isn't nested.
There are only two levels that can be used for non-nested types,
public (IsPublic) or not (IsNotPublic). The non-public level is called
private in ILAsm, internal in C# and Friend in VB.NET. Protected
doesn't make sense if the type isn't nested.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.