The C# Language Specification states on §7.5.1.2 that “(…) the expressions or variable references of an argument list are evaluated in order, from left to right (…)”. So, when this code is compiled with the C# 4.0 compiler: static void M( int x = 10, int y = 20, int z = 30) { Console .WriteLine( "x...
Posted to
Paulo Morgado
by
Paulo Morgado
on
Tue, Jul 17 2012
Filed under:
Filed under: .NET, C#, VisualStudio, VisualStudio2010, .NET4.0, CodeProject, C#4.0, .NET4.5, VisualStudio2012, C#5.0