Dynamo.Graph.Workspaces.WorkspaceModel.IsInternalNodeToCodeConnection C# (CSharp) Method

IsInternalNodeToCodeConnection() private static method

Checks whether the given connection is inside the node to code set or outside it. This determines if it should be redrawn(if it is external) or if it should be deleted (if it is internal)
private static IsInternalNodeToCodeConnection ( IEnumerable nodes, ConnectorModel connector ) : bool
nodes IEnumerable
connector ConnectorModel
return bool
        private static bool IsInternalNodeToCodeConnection(IEnumerable<NodeModel> nodes, ConnectorModel connector)
        {
            return nodes.Contains(connector.Start.Owner) && nodes.Contains(connector.End.Owner);
        }
WorkspaceModel