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 | I |
|
| method | Action |
|
| inherit | bool |
Return Value
| Type | Description |
|---|---|
| bool |