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
-
ObjectMemberInfoDecoratorExtensions
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 thedecorator
implements one or more of the specifiedattributeTypes
; otherwise,false
.
Exceptions
- System.ArgumentNullException
decorator
cannot be null -or-attributeTypes
cannot be null.
See Also
IDecorator<T>
Decorator<T>