dlech.SshAgentLib.CygwinSocket.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            Dispose(true);
              GC.SuppressFinalize(this);
        }

Same methods

CygwinSocket::Dispose ( bool disposing ) : void

Usage Example

Example #1
0
 public void StopCygwinSocket()
 {
     if (disposed)
     {
         throw new ObjectDisposedException("PagentAgent");
     }
     if (cygwinSocket == null)
     {
         return;
     }
     cygwinSocket.Dispose();
     cygwinSocket = null;
 }