GetCustomAttribute(ParameterInfo, Type, bool) Method

Retrieves a custom attribute 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


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


Type:  ParameterInfo
An object derived from the class that describes a parameter of a member of a class.
Type:  Type
The type, or a base type, of the custom attribute to search for.
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)