Summary
Gets a single custom attribute of type T and casts it.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- ReflectionUtilities
Syntax
public static TAttribute GetAttribute<TAttribute>(this ICustomAttributeProvider target, bool inherit = false)
where TAttribute : Attribute
Type Parameters
| Name | Description |
|---|---|
| TAttribute |
Parameters
| Name | Type | Description |
|---|---|---|
| target | I |
|
| inherit | bool |
Return Value
| Type | Description |
|---|---|
| TAttribute |