public virtual bool CanConnect(IConnectable output, IConnectable input) { if (CanConnect(output.GetType(), input.GetType())) { if (output.GetType().Name == "ShellNodeConfig" && input.GetType().Name == "ShellNodeConfigInput") { InvertApplication.Log("!!!!Bingo!!!!"); InvertApplication.Log("CanOutputTo : " + output.CanOutputTo(input)); InvertApplication.Log("CanInputFrom : " + input.CanInputFrom(output)); } if (output.CanOutputTo(input) && input.CanInputFrom(output)) { return(true); } } return(false); }
public virtual bool CanConnect(IConnectable output, IConnectable input) { if (CanConnect(output.GetType(), input.GetType())) { if (output.CanOutputTo(input) && input.CanInputFrom(output)) { return(true); } } return(false); }
public virtual bool CanConnect(IConnectable output, IConnectable input) { if (CanConnect(output.GetType(), input.GetType())) { if (output.CanOutputTo(input) && input.CanInputFrom(output)) { return true; } } return false; }