ReflectionUtilities.

ForEachCustomAttribute<TAttribute>(ICustomAttributeProvider, Action<TAttribute>, bool) Method

Summary

Calls `method` once for each attribute of the specified type on `target`.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
ReflectionUtilities

Syntax

public static bool ForEachCustomAttribute<TAttribute>(this ICustomAttributeProvider target, Action<TAttribute> method, bool inherit = false) 
    where TAttribute : Attribute

Type Parameters

Name Description
TAttribute

Parameters

Name Type Description
target ICustomAttributeProvider
method Action<TAttribute>
inherit bool

Return Value

Type Description
bool