lundi 13 avril 2015

How do I determine whether a method is visible outside its own assembly?

I'm trying to identify all members visible outside an assembly. My task right now is with methods. This is what I have so far:



bool isVisible = method.IsPublic || method.IsFamily || method.IsFamilyOrAssembly;


The problem with this is that explicit interface implementations are not included by this check. How can I identify visible members including explicit interface implementations?






Aucun commentaire:

Enregistrer un commentaire