Skip to content
Discussion options

You must be logged in to vote

It would be quite handy... :)

I don't think so.

You can do much less thing with readonly ref than regular ref. All interlocked or volatile apis accept ref.

Currently there is a workaround Unsafe.As(Unsafe.AsRef()). Since this is unsafe, I don't think we should make a shortcut.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zugolbr
Comment options

Answer selected by zugolbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants