InjectionTargetInfoGetCustomAttributeT Method

Simple Injector
Retrieves a custom attribute of a specified type that is applied to a specified parameter.

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

public T GetCustomAttribute<T>()
where T : Attribute

Type Parameters

T
The parameter to inspect.

Return Value

Type: T
A custom attribute that matches T, or null if no such attribute is found.
See Also

Reference