InjectionTargetInfoGetCustomAttributesT Method

Simple Injector
Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.0.0
Syntax

public IEnumerable<T> GetCustomAttributes<T>()
where T : Attribute

Type Parameters

T
The type of attribute to search for.

Return Value

Type: IEnumerableT
A collection of the custom attributes that are applied to element and that match T, or an empty collection if no such attributes exist.
See Also

Reference