Performance traps of ref locals and ref returns in C#

added by DotNetKicks
4/11/2018 1:12:51 PM

3 Kicks, 319 Views

The C# language from the very first version supported passing arguments by value or by reference. But before C# 7 the C# compiler supported only one way of returning a value from a method (or a property) - returning by value. This has been changed in C# 7 with two new features: ref returns and...


0 comments