Class PortConverterAttribute
Class PortConverterAttribute. The PortConverter attribute registers a from-to type converter for your ports. Implements the Attribute
Namespace: Mechatronics.SystemGraph
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class PortConverterAttribute : Attribute, _Attribute
Constructors
PortConverterAttribute(Type, Type)
Initializes a new instance of the PortConverterAttribute class.
Declaration
public PortConverterAttribute(Type _fromType, Type _toType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | _fromType | From type. |
| Type | _toType | To type. |
Fields
fromType
From type
Declaration
public Type fromType
Field Value
| Type | Description |
|---|---|
| Type |
toType
To type
Declaration
public Type toType
Field Value
| Type | Description |
|---|---|
| Type |