public NodeLink GetConnectionTo(Node other) { return(Item2.GetConnections(Item1).FirstOrDefault(x => IsInput ? x.from == other : x.to == other)); }
public NodeLink GetConnectionTo(NodeLinkPort other) { return(Item2.GetConnections(Item1).FirstOrDefault(x => IsInput ? (x.from == other.Node && x.fromField == other.Link.FieldName) : (x.to == other.Node && x.toField == other.Link.FieldName))); }
public List <NodeLink> GetConnections() { return(Item2.GetConnections(Item1)); }