/// <summary> /// Determines whether the <paramref name="provider"/> element has an associated <see cref="System.Attribute"/> /// of any of the types given in <paramref name="attributeTypes"/>. /// </summary> /// <param name="provider"></param> /// <param name="attributeTypes">The list of attribute types to look for. If this list is <see langword="null"/> or /// empty an <see cref="ArgumentException"/> will be thrown.</param> /// <returns>True if the source element has at least one of the specified attribute types, false otherwise.</returns> public static bool HasAnyAttribute(this ICustomAttributeProvider provider, params Type[] attributeTypes) { return(ReflectLookup.HasAnyAttribute(provider, attributeTypes)); }