WebMarkupMin.Core.GenericHtmlMinifier.ContainsRelExternalAttribute C# (CSharp) Méthode

ContainsRelExternalAttribute() private static méthode

Determines whether a list of attributes contains the rel attribute with value, that equals to "external" or "alternate external"
private static ContainsRelExternalAttribute ( IList attributes ) : bool
attributes IList List of attributes
Résultat bool
        private static bool ContainsRelExternalAttribute(IList<HtmlAttribute> attributes)
        {
            bool containsRelExternalAttribute = attributes.Any(a => a.NameInLowercase == "rel"
                 && _relExternalAttributeRegex.IsMatch(a.Value));

            return containsRelExternalAttribute;
        }