I'm not sure if I'm doing something wrong, reading wrong, or just wrote some kludge, but just spent some time trying to get the MSDN example on .ReadBase64 working. Does anyone concur that the example is incorrect? Or is it my bad?

In particular, here's the code they use in a loop to read:
Code:
base64len = reader.ReadBase64(base64, 0, 50);
I changed to
Code:
base64len += reader.ReadBase64(base64, base64len, 50);
Seems to me the MSDN example would read the next 50 bytes and always overwrite the buffer beginning at position zero. Or is it just me?