override protected void Dispose(bool disposing) { try { if (disposing && _cachedBytes != null) _cachedBytes.Clear(); _cachedBytes = null; _currentPosition = 0; _currentArrayIndex = 0; _totalLength = 0; } finally { base.Dispose(disposing); } }