Table of Contents

HasAttributes Method

Definition

Namespace
Cuemon.Extensions.Reflection
Assemblies
Cuemon.Extensions.Reflection.dll
Source
src/Cuemon.Extensions.Reflection/MemberInfoExtensions.cs

HasAttributes(MemberInfo, params 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

bool

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