public override int Read([In, Out] byte[] buffer, int offset, int size) { throw new InvalidOperationException(SR.net_writeonlystream); }