Interesting observation on C# 4’s optional parameter
The other day I had an interesting observation on the optional parameters in C# 4, whereby if you specify a parameter as optional on an interface you don’t actually have to make that parameter optional on any implementing class: 1: public interface MyInterface 2: { 3: void TestMethod(bool flag=false); 4: } 5: 6: public class …
Interesting observation on C# 4’s optional parameter Read More »