Class MemberInfoExtensions
Extension methods for the System.Reflection.MemberInfo.
Inheritance
System.Object
MemberInfoExtensions
Namespace: Cuemon.Reflection
Assembly: Cuemon.Core.dll
Syntax
public static class MemberInfoExtensions
Methods
| Improve this DocHasAttributes(MemberInfo, Boolean, Type[])
Determines whether the specified source type contains one or more of the specified attribute target types.
Declaration
public static bool HasAttributes(this MemberInfo source, bool inherit, params Type[] targets)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | source | The member to match against. |
System.Boolean | inherit |
|
System.Type[] | targets | The attribute target types to be matched against. |
Returns
Type | Description |
---|---|
System.Boolean |
|
HasAttributes(MemberInfo, Type[])
Determines whether the specified source type contains one or more of the specified attribute target types.
Declaration
public static bool HasAttributes(this MemberInfo source, params Type[] targets)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MemberInfo | source | The member to match against. |
System.Type[] | targets | The attribute target types to be matched against. |
Returns
Type | Description |
---|---|
System.Boolean |
|