News for hackers. Stuff that matters.
Re:Simple but Interesting Features of VS2010 and C# 4.0 by kogir on Thursday November 17, 2011 @05:46PM (#3249596)
Beware default values. They're set at the point of invocation at compile time. This isn't a problem, but you need to be aware of it. For this reason it's considered bad form to publicly use default values library assemblies - the callers won't see any change until they too are recompiled.

See http://blogs.msdn.com/b/ericlippert/archive/2011/05/19/optio...

Re:Simple but Interesting Features of VS2010 and C# 4.0 by photon137 on Thursday November 17, 2011 @07:47PM (#3249974)
Isn't that a standard feature of x86 function-invocation, ie, argument values are stored in caller's stack? (although C# runs on CLR, but still...)
Re:Simple but Interesting Features of VS2010 and C# 4.0 by xpaulbettsx on Thursday November 17, 2011 @07:09PM (#3249860)
Interesting, didn't know that - good tip