Ejemplo n.º 1
0
        public void Dispose()
        {
            if (CommandPrompt != null)
            {
                if (StandardOutput != null)
                {
                    StandardOutput.Dispose(); StandardOutput = null;
                }
                if (StandardError != null)
                {
                    StandardError.Dispose(); StandardError = null;
                }
                CommandPrompt.Kill();
                CommandPrompt = null;
            }

            GC.SuppressFinalize(this);
        }