Skip to content

GetAttribute Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.ReflectionTools.dll

Overloads ​

NameDescription
T GetAttribute(PropertyDescriptor descriptor)Returns if property is decorated with the Attribute
T GetAttribute(Enum enumeration)Returns the attribute decorating a Property
T GetAttribute(MethodInfo method)Returns the attribute decorating a Method
T GetAttribute(PropertyInfo property)Returns the attribute decorating a Property
T GetAttribute(Type type)Returns the attribute found
object GetAttribute(PropertyInfo property, string attribute, bool caseInsensitive = null)Returns the attribute decorating a Property

object GetAttribute(PropertyInfo property, string attribute, bool caseInsensitive = null) ​

csharp
object GetAttribute(PropertyInfo property, string attribute, bool caseInsensitive = null)

Returns the attribute decorating a Property

T GetAttribute(PropertyDescriptor descriptor) ​

csharp
T GetAttribute(PropertyDescriptor descriptor)

Returns if property is decorated with the Attribute

T GetAttribute(Enum enumeration) ​

csharp
T GetAttribute(Enum enumeration)

Returns the attribute decorating a Property

T GetAttribute(MethodInfo method) ​

csharp
T GetAttribute(MethodInfo method)

Returns the attribute decorating a Method

T GetAttribute(PropertyInfo property) ​

csharp
T GetAttribute(PropertyInfo property)

Returns the attribute decorating a Property

T GetAttribute(Type type) ​

csharp
T GetAttribute(Type type)

Returns the attribute found