Recent Posts

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 ...