//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: protected void close() throws IOException protected internal override void Close() { try { Impl.Close(); } finally { // set fd to delegate's fd to be compatible with older releases this.Fd = null; } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void close() throws java.io.IOException public override void Close() { // Prevent recursion. See BugId 4484411 if (Closing) { return; } Closing = true; if (Socket != null) { if (!Socket.Closed) { Socket.Close(); } } else { Impl.Close(); } Closing = false; }