Python.Runtime.PythonException.Dispose C# (CSharp) Méthode

Dispose() public méthode

Dispose Method
The Dispose method provides a way to explicitly release the Python objects represented by a PythonException.
public Dispose ( ) : void
Résultat void
	public void Dispose() {
	    if (!disposed) {
		if (Runtime.Py_IsInitialized() > 0) {
		    IntPtr gs = PythonEngine.AcquireLock();
		    Runtime.Decref(excType);
		    Runtime.Decref(excValue);
		    Runtime.Decref(excTb);
		    PythonEngine.ReleaseLock(gs);
		}
		GC.SuppressFinalize(this);
		disposed = true;
	    }
	}