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>, params 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
decoratorIDecorator<MemberInfo>The IDecorator<T> to extend.
attributeTypesType[]The attribute types to be matched against.
Returns
- bool
trueif the underlying MemberInfo of thedecoratorimplements one or more of the specifiedattributeTypes; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null -or-attributeTypescannot be null.
See Also
IDecorator<T>
Decorator<T>