コード例 #1
0
        protected virtual void Dispose(bool disposing = true)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                stdOut.Close();
                VerboseOut.Close();
                ErrorOut.Close();
                WarningOut.Close();
                stdOut.Dispose();
                VerboseOut.Dispose();
                ErrorOut.Dispose();
                WarningOut.Dispose();
            }

            _disposed = true;
        }
コード例 #2
0
        protected virtual void Dispose(bool disposing = true)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                stdOut.Close();
                VerboseOut.Close();
                ErrorOut.Close();
                WarningOut.Close();
                stdOut.Dispose();
                VerboseOut.Dispose();
                ErrorOut.Dispose();
                WarningOut.Dispose();
            }

            // release any unmanaged objects
            // set the object references to null

            _disposed = true;
        }