Hi,
I have problem is checking the port
Example:
I have 3 class GoGeneralNode (ClassA , ClassB and ClassC)
ClassA and ClassB only have 1 output port where ClassC have 2inputPort and 1Output
OutPortA>----->InPort1C
OutPortB>------>InPort2C
The objective to check link is connected accordingly and give bool to the choice.
Here is my code:
public virtual void Method1(double v)
{
ClassA scr = this.FromNode as ClassA ;
ClassC dst = this.ToNode as ClassC;
if (scr != null && dst != null)
{
if (<font color="#ff0000"><b>dst.GetLeftPort(0).IsLinked(this.FromPort)</b></font>) <-- i dont have any idea how to make the condition
dst.Input1 = v;
else
dst.Input2 = v;
Console.Write("Constant1ToComperatorInput1 :" + v + "\n");
}
}