public void Dispose() { if (this._inputStream != null) { using (this._inputStream) { this._inputStream.Close(); } } this._inputStream = null; this._knownTypes = null; }