Ejemplo n.º 1
0
        private static AccessRights GetAccessRights(IClrDeclaredElement element)
        {
            ITypeElement parentTypeElement = element.GetContainingType();

            IAccessRightsOwner accessRightsOwner = element as IAccessRightsOwner;
            if (accessRightsOwner == null) return AccessRights.PRIVATE;

            IAccessRightsOwner parentAccessRightsOwner = parentTypeElement as IAccessRightsOwner;
            if (parentAccessRightsOwner == null) return accessRightsOwner.GetAccessRights();

            return parentAccessRightsOwner.GetAccessRights();
        }
 private static bool IsExportedType(IAccessRightsOwner @class)
 {
     return @class.GetAccessRights() == AccessRights.PUBLIC;
 }
Ejemplo n.º 3
0
 private static bool IsExportedType(IAccessRightsOwner @class)
 {
     return(@class.GetAccessRights() == AccessRights.PUBLIC);
 }