GetCustomAttributes(ParameterInfo, Type, bool) Method

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

Syntax

public static Attribute[] GetCustomAttributes(this ParameterInfo element, Type attributeType, bool inherit)

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.
inherit
Type:  Boolean
If true, specifies to also search the ancestors of for custom attributes.

Return Value

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