protected virtual void ThrowNoStreamException() { throw new InvalidOperationException("The decorated stream must not be null."); }