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

Attribute to restrict to field only for types specified as generic arguments. More...

Inheritance diagram for ClassGenericArgumentAttribute:
ClassTypeConstraintAttribute

Public Member Functions

 ClassGenericArgumentAttribute (int genericArgumentIndex)
 Create a ClassExtendsAttribute with a specified type. More...
 
override Type GetBaseType (FieldInfo fieldInfo)
 It returns the base type of constraints. More...
 
override bool IsConstraintSatisfied (Type type, FieldInfo fieldInfo)
 Whether the constraint is satisfied is judged. More...
 
- Public Member Functions inherited from ClassTypeConstraintAttribute
virtual string GetTypeName (FieldInfo fieldInfo)
 Returns the type name of the constraint. More...
 

Detailed Description

Attribute to restrict to field only for types specified as generic arguments.

Available classes :

Constructor & Destructor Documentation

◆ ClassGenericArgumentAttribute()

ClassGenericArgumentAttribute ( int  genericArgumentIndex)

Create a ClassExtendsAttribute with a specified type.

Parameters
genericArgumentIndexIndex of generic argument

Member Function Documentation

◆ GetBaseType()

override Type GetBaseType ( FieldInfo  fieldInfo)
virtual

It returns the base type of constraints.

Parameters
fieldInfoFieldInfo with this attribute specified
Returns
The base type of constraints

Reimplemented from ClassTypeConstraintAttribute.

◆ IsConstraintSatisfied()

override bool IsConstraintSatisfied ( Type  type,
FieldInfo  fieldInfo 
)
virtual

Whether the constraint is satisfied is judged.

Parameters
typeDetermining type
fieldInfoFieldInfo with this attribute specified
Returns
Returns true if the constraint is satisfied.

Implements ClassTypeConstraintAttribute.