Attribute to restrict to classes inherited from the type specified for the field.
More...
Attribute to restrict to classes inherited from the type specified for the field.
Available classes :
◆ ClassExtendsAttribute()
◆ GetBaseType()
override Type GetBaseType |
( |
FieldInfo |
fieldInfo | ) |
|
|
virtual |
It returns the base type of constraints.
- Parameters
-
fieldInfo | FieldInfo 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
-
type | Determining type |
fieldInfo | FieldInfo with this attribute specified |
- Returns
- Returns true if the constraint is satisfied.
Implements ClassTypeConstraintAttribute.