Class MemberInfoExtensions
- Namespace
- Cuemon.Extensions.Reflection
- Assembly
- Cuemon.Extensions.Reflection.dll
Extension methods for the MemberInfo.
public static class MemberInfoExtensions
- Inheritance
-
MemberInfoExtensions
Methods
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
sourceMemberInfoThe member to match against.
targetsType[]The attribute target types to be matched against.
Returns
- bool
trueif the specified member contains one or more of the specified attribute target types; otherwise,false.