public override void Calculate() { // Define the Input for the Script var parameters = InputPorts.Select(port => port.Data).ToList(); switch (scriptingControl.HighlightingComboBox.SelectedItem.ToString()) { case "C#": OutputPorts[0].Data = mScriptCompiler.Value.Run(parameters.ToArray()); break; case "Python": StartPythonCompilation(null, null); break; } }
public override void Calculate() { var outputList = InputPorts.Select(conn => conn.Data).ToList(); OutputPorts[0].Data = outputList; }