GetCustomAttribute(ParameterInfo, Type) Method

Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
Namespace: Z.Reflection.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType)

Parameters

element
Type:  ParameterInfo
An object derived from the class that describes a parameter of a member of a class.
attributeType
Type:  Type
The type, or a base type, of the custom attribute to search for.

Return Value

Type:  Attribute
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)