3 ms·
Unfortunately, you are also wrong about C#[0]. http://csharppad.com/gist/0408e33984025e970013 http://csharppad.com/gist/0408e33984025e970013 This behavior is
by dsp1234 11y ago
Unfortunately, you are also wrong about C#[0].
http://csharppad.com/gist/0408e33984025e970013 http://csharppad.com/gist/0408e33984025e970013
This behavior is defined (in the C# 5.0 specification document) at section 5.1.4 "Value Parameters"[0].
"A value parameter comes into existence upon invocation of the function member (method, instance constructor, accessor, or operator) or anonymous function to which the parameter belongs, and is initialized with the value of the argument given in the invocation."
[0] - https://www.microsoft.com/en-us/download/details.aspx?id=7029 https://www.microsoft.com/en-us/download/details.aspx?id=702...