public virtual void Dispose() { disposed = true; this.OnClose(); this.inputStream.Close(); this.outputStream.Close(); }