ReflectionExtensions.GetAttribute<TAttribute> method
namespace: Serenity assembly: Serenity.Net.Core
Gets the attribute.
public static TAttribute GetAttribute<TAttribute>(this MemberInfo member, bool inherit = false)
where TAttribute : Attribute
| parameter | description |
|---|---|
| TAttribute | The type of the attribute. |
| member | The member. |
| inherit | if set to true [inherit]. |
Exceptions
| exception | condition |
|---|---|
| InvalidOperationException |
See Also
- class TAttribute
- class ReflectionExtensions