GetCustomAttribute(object, Type, bool) Method

An object extension method that gets the first custom attribute.
Namespace: Z.Reflection.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static object GetCustomAttribute(this object this, Type attribute, bool inherit)

Parameters

this
Type:  Object
The @this to act on.
attribute
Type:  Type
The attribute.
inherit
Type:  Boolean
true to inherit.

Return Value

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