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