Class FieldAttribute
This attribute is used to declare a specific field as a port. To use a field as a port the field type must derive from IPortType or PortList.
Implements
Inherited Members
Namespace: Mechatronics.SystemGraph
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Parameter)]
public class FieldAttribute : Attribute, _Attribute
  Constructors
| Name | Description | 
|---|---|
| FieldAttribute(string, PortDirection, FieldExtra) | Creates a FieldAttribute and checks for reserved charactes in the name.  | 
      
Fields
| Name | Description | 
|---|---|
| Direction | See PortDirection  | 
      
| DisplayName | Name of the port as it appears in the editor.  | 
      
| Extra | See FieldExtra, use this field to describe functionalities of the port.  | 
      
Methods
| Name | Description | 
|---|---|
| ExtractAll(object) | Get all ports from an object.  | 
      
| ExtractLists(object) | Get all portlists from an object.  | 
      
| Extract<T>(string) | Extract a single FieldAttribute from a field.  | 
      
| IsList(FieldInfo) | Checks if this port is a PortList.  |