Hacker News new | ask | show | jobs
by jff 4895 days ago
You probably won't be doing pointer arithmetic in C#. It's been about 5 years since I wrote any C#, but I don't remember any... mostly I remember it as a Java clone, which would preclude pointer arithmetic.
1 comments

C# has pointers (although you're rarely going to use them)
You're rarely going to use them...so let's ask a candidate about them.

This analogy is proving more accurate as I read thru the comments.

You're right on the rarely using them part, I don't think I used a single one. Thanks for the clarification!
The only time I've ever used them is to speed up drawing. Bitmap.SetPixel is super slow compared to taking a pointer to the raw image data and writing there directly.