public void Dispose() { if (pythonConsole != null) { pythonConsole.Dispose(); } if (thread != null) { thread.Join(); } }
public void Dispose() { if (_pythonConsole != null) { _pythonConsole.Dispose(); _pythonConsole = null; } if (_thread != null) { _thread.Join(); _thread = null; } }