Skip to content

TryGetAttribute Method ​

Definition ​

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

Overloads ​

NameDescription
bool TryGetAttribute(PropertyInfo property, out T attribute)Returns TRUE if property is decorated with the Attribute
bool TryGetAttribute(Type type, out T attribute)Returns TRUE if Type is decorated with the Attribute

bool TryGetAttribute(PropertyInfo property, out T attribute) ​

csharp
bool TryGetAttribute(PropertyInfo property, out T attribute)

Returns TRUE if property is decorated with the Attribute

bool TryGetAttribute(Type type, out T attribute) ​

csharp
bool TryGetAttribute(Type type, out T attribute)

Returns TRUE if Type is decorated with the Attribute