Is there a specific reason why C# 7 bring inlining out
parameters but not ref
?
The following is valid on C# 7:
int.TryParse("123", out _);
But this is invalid:
public void Foo(ref int x) { }
Foo(ref _); // error
I don't see a reason why the same logic can't be applied to ref
parameters.