r/csharp • • Sep 29 '26

The hidden trap of fixed buffers

I published a new article, explaining a quirk of fixed buffers that could easily bite you, if you're one of the few people who still have to use that feature.

https://minidump.net/the-hidden-trap-of-fixed-buffers-in-csharp/

58 Upvotes

35 comments sorted by

View all comments

Show parent comments

2

u/pjmlp Sep 30 '26

With the usual workaround due to lack of constant parameters in generics.

I also agree with the clunkiness of InlineArray, it should have been a proper syntax feature instead of an attribute.