Ejemplo n.º 1
0
 public static void      InspectAttributes(AssemblyUsages result, ICustomAttributeProvider attributeProvider)
 {
     if (attributeProvider.HasCustomAttributes)
     {
         foreach (CustomAttribute attribute in attributeProvider.CustomAttributes)
         {
             AssemblyUsagesExtractor.InspectAttribute(result, attribute);
         }
     }
 }
Ejemplo n.º 2
0
        public static void      InspectSecurityDeclaration(AssemblyUsages result, SecurityDeclaration securityDeclaration)
        {
            if (securityDeclaration.HasSecurityAttributes == true)
            {
                foreach (SecurityAttribute attribute in securityDeclaration.SecurityAttributes)
                {
                    if (AssemblyUsagesExtractor.debug > 1)
                    {
                        AssemblyUsagesExtractor.Log("SecAttr {0}", attribute);
                    }

                    using (AutoIndent.Instance)
                    {
                        AssemblyUsagesExtractor.InspectAttribute(result, attribute);
                    }
                }
            }
        }