[]
Gets the custom attributes.
public static IEnumerable<T> GetCustomAttributes<T>(MemberInfo memberInfo, bool inherited = false) where T : Attribute
Type | Name | Description |
---|---|---|
MemberInfo | memberInfo | The member info. |
bool | inherited | if set to |
Type | Description |
---|---|
IEnumerable<T> | The custom attribute or null if not found. |
Name | Description |
---|---|
T | Type of the custom attribute. |