Skip to main content

Class CastNode

A cast node that attempts to convert a connected input of any type to the output port's value type.

public class CastNode : BaseNode

Inheritance​

Fields​

IN_PORT_NAME​

Name of the dynamic input port created from this node

public const string IN_PORT_NAME = "In"

Field Value​

string

OUT_PORT_NAME​

Name of the dynamic output port created from this node

public const string OUT_PORT_NAME = "Out"

Field Value​

string

Methods​

GetValue(NodePort)​

Gets the value from the dynamic input port and attempts to convert it to dynamic output port's type.

public override object GetValue(NodePort port)

Parameters​

NameTypeDescription
portNodePortThe output port requesting the value.

Returns​

object — The converted value.