Recent Posts

Why ref locals allow only a single binding?

8 minute read

Current restriction on ref locals to be single-assignable is a straightforward and simple way to guard against several potential problems. There are ways to ...

Safe to return rules for ref returns.

4 minute read

For the reasons explained in the earlier post, C# disallows returning local variables by reference. While the principle of “Cannot return local variables by ...