Class MemberInfoDecoratorExtensions
- Namespace
- Cuemon.Reflection
- Assembly
- Cuemon.Core.dll
Extension methods for the MemberInfo class hidden behind the IDecorator<T> interface.
public static class MemberInfoDecoratorExtensions
- Inheritance
-
MemberInfoDecoratorExtensions
Methods
HasAttribute(IDecorator<MemberInfo>, Type[])
Determines whether the underlying 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 MemberInfo of thedecorator
implements one or more of the specifiedattributeTypes
; otherwise,false
.
Exceptions
- ArgumentNullException
decorator
cannot be null -or-attributeTypes
cannot be null.
See Also
IDecorator<T>
Decorator<T>