Table of Contents

Class MemberInfoExtensions

Namespace
Cuemon.Extensions.Reflection
Assembly
Cuemon.Extensions.Reflection.dll

Extension methods for the System.Reflection.MemberInfo.

public static class MemberInfoExtensions
Inheritance
Object
MemberInfoExtensions

Methods

HasAttributes(MemberInfo, Type[])

Determines whether the specified source type contains one or more of the specified attribute target types.

public static bool HasAttributes(this MemberInfo source, params Type[] targets)

Parameters

source MemberInfo

The member to match against.

targets Type[]

The attribute target types to be matched against.

Returns

Boolean

true if the specified member contains one or more of the specified attribute target types; otherwise, false.