public virtual void Close() { Exception exception = null; //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: for (Step<?> step : pipeline) foreach (Step <object> step in _pipeline) { try { step.Close(); } catch (Exception e) { if (exception == null) { exception = e; } else { exception.addSuppressed(e); } } } _execution.close(); if (exception != null) { throw new Exception(exception); } }