Hacker News new | ask | show | jobs
by charliesome 4895 days ago
C# has pointers (although you're rarely going to use them)
2 comments

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.