Class TypeConstraintAttribute
Constrains a property to a range of Types.
Namespace: IdleKit.Core
Assembly: cs.temp.dll.dll
Syntax
public class TypeConstraintAttribute : PropertyAttribute
Constructors
TypeConstraintAttribute(Type[])
Declaration
public TypeConstraintAttribute(params Type[] requiredTypes)
Parameters
Type | Name | Description |
---|---|---|
Type[] | requiredTypes |
Properties
RequiredTypes
The Types this property must derive from.
Declaration
public Type[] RequiredTypes { get; }
Property Value
Type | Description |
---|---|
Type[] |
RequiredTypesLabel
A readable form of the required Types.
Declaration
public string RequiredTypesLabel { get; }
Property Value
Type | Description |
---|---|
String |