Exemplo n.º 1
0
        protected bool IsCompatibleWithSourcePort(NodeReflectionData node)
        {
            if (sourcePort.direction == Direction.Output)
            {
                return(node.HasInputOfType(sourcePort.portType));
            }

            return(node.HasOutputOfType(sourcePort.portType));
        }
        private bool IsCompatible(Port sourcePort, NodeReflectionData node)
        {
            if (sourcePort == null)
            {
                return(true);
            }

            if (sourcePort.Direction == PortDirection.Input)
            {
                return(node.HasOutputOfType(sourcePort.Type));
            }

            return(node.HasInputOfType(sourcePort.Type));
        }