Photon Fusion
2.1.1
Provides utility methods for reflection. More...
Static Public Member Functions | |
| static T | GetCustomAttributeOrThrow< T > (this MemberInfo member, bool inherit) |
| Retrieves a custom attribute of type T from the provided member. | |
Provides utility methods for reflection.
|
static |
Retrieves a custom attribute of type T from the provided member.
| T | The type of the attribute to retrieve. Must be a subclass of Attribute. |
| member | The member to retrieve the attribute from. |
| inherit | Specifies whether to search this member's inheritance chain to find the attributes. |
| ArgumentOutOfRangeException | Thrown when the provided member does not have an attribute of type T. |
| InvalidOperationException | Thrown when the provided member has more than one attribute of type T. |
| T | : | Attribute |