private void _removeNoExist(IEnumerable <NodePort> dynamicPort, IEnumerable <TypeInfo> typeInfos) { //删除被不存在的 foreach (var nodePort in dynamicPort) { bool hit = false; foreach (var info in typeInfos) { if (nodePort.ValueType == info.Type && nodePort.fieldName == info.Name) { hit = true; break; } } if (!hit) { TNode.RemoveDynamicPort(nodePort); } } }