/// <summary> /// Determines whether the specified <see cref="attributeProvider"/> has at least one <see cref="Attribute"/> /// of type <typeparamref name="TAttribute"/> /// </summary> /// <typeparam name="TAttribute"/> public static bool Any <TAttribute>(this ICustomAttributeProvider attributeProvider) where TAttribute : Attribute { return(attributeProvider.FirstOrDefault <TAttribute>() != null); }