Promotion of ref variables

Hello. Can i promote a ref variables so that it will remain (By ref)? Every time after promotion they become just copies.

A local variable will not retain the reference. Though you can do something like this

Re-setting the ref variable at the end of all operations.

2 Likes