Arbor 3: FSM & BT Graph Editor  3.7.8
AttributeHelper Class Reference

A helper class for Attribute. More...

Static Public Member Functions

static Attribute[] GetAttributes (MemberInfo member)
 Get Attributes. More...
 
static Attribute GetAttribute (MemberInfo member, System.Type targetType)
 Get Attribute (generic) More...
 
static T GetAttribute< T > (MemberInfo member)
 Get Attribute (generic) More...
 
static T[] GetAttributes< T > (MemberInfo member)
 Get Attribute (generic) More...
 
static bool HasAttribute (MemberInfo member, System.Type targetType)
 Whether has Attribute More...
 
static bool HasAttribute< T > (MemberInfo member)
 Whether has Attribute More...
 

Detailed Description

A helper class for Attribute.

Member Function Documentation

◆ GetAttribute()

static Attribute GetAttribute ( MemberInfo  member,
System.Type  targetType 
)
static

Get Attribute (generic)

Parameters
memberMemberInfo
targetTypeTarget Type
Returns
Attribute

◆ GetAttribute< T >()

static T GetAttribute< T > ( MemberInfo  member)
static

Get Attribute (generic)

Template Parameters
TTarget Type
Parameters
memberMemberInfo
Returns
Attribute
Type Constraints
T :Attribute 

◆ GetAttributes()

static Attribute [] GetAttributes ( MemberInfo  member)
static

Get Attributes.

Parameters
memberMemberInfo
Returns
Attributes

◆ GetAttributes< T >()

static T [] GetAttributes< T > ( MemberInfo  member)
static

Get Attribute (generic)

Template Parameters
TTarget Type
Parameters
memberMemberInfo
Returns
Attribute
Type Constraints
T :Attribute 

◆ HasAttribute()

static bool HasAttribute ( MemberInfo  member,
System.Type  targetType 
)
static

Whether has Attribute

Parameters
memberMemberInfo
targetTypeTarget Type
Returns
Whether has attribute.

◆ HasAttribute< T >()

static bool HasAttribute< T > ( MemberInfo  member)
static

Whether has Attribute

Template Parameters
TTarget Type
Parameters
memberMemberInfo
Returns
Whether has attribute.
Type Constraints
T :Attribute