Table of Contents

Class MemberInfoDecoratorExtensions

Namespace
Cuemon.Reflection
Assembly
Cuemon.Core.dll

Extension methods for the System.Reflection.MemberInfo class hidden behind the IDecorator<T> interface.

public static class MemberInfoDecoratorExtensions
Inheritance
Object
MemberInfoDecoratorExtensions

Methods

HasAttribute(IDecorator<MemberInfo>, Type[])

Determines whether the underlying System.Reflection.MemberInfo of the decorator implements one or more of the specified attributeTypes.

public static bool HasAttribute(this IDecorator<MemberInfo> decorator, params Type[] attributeTypes)

Parameters

decorator IDecorator<MemberInfo>

The IDecorator<T> to extend.

attributeTypes Type[]

The attribute types to be matched against.

Returns

Boolean

true if the underlying System.Reflection.MemberInfo of the decorator implements one or more of the specified attributeTypes; otherwise, false.

Exceptions

System.ArgumentNullException

decorator cannot be null -or- attributeTypes cannot be null.

See Also